Explorar o código

Made Entity abstract - use Pivot instead if you just want a Pivot entity.

Mark Sibly %!s(int64=7) %!d(string=hai) anos
pai
achega
c0cf306fad
Modificáronse 1 ficheiros con 4 adicións e 2 borrados
  1. 4 2
      modules/mojo3d/scene/entity.monkey2

+ 4 - 2
modules/mojo3d/scene/entity.monkey2

@@ -3,7 +3,7 @@ Namespace mojo3d
 
 #rem monkeydoc The Entity class.
 #end
-Class Entity Extends DynamicObject
+Class Entity Extends DynamicObject Abstract
 	
 	#rem monkeydoc Copied signal.
 	
@@ -477,7 +477,9 @@ Class Entity Extends DynamicObject
 	
 	Method OnCopy:Entity( parent:Entity ) Virtual
 		
-		Return New Entity( Self,parent )
+		RuntimeError( "Cannot copy Entity" )
+		
+		Return Null
 	End
 		
 	#rem monkeydoc Invoked when entity transitions from hidden->visible.