Browse Source

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

Mark Sibly 7 years ago
parent
commit
c0cf306fad
1 changed files with 4 additions and 2 deletions
  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.