浏览代码

Fixed Entity.AddComponent<T>() adding component twice.

Mark Sibly 7 年之前
父节点
当前提交
4d56ce4601
共有 1 个文件被更改,包括 0 次插入2 次删除
  1. 0 2
      modules/mojo3d/scene/entity.monkey2

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

@@ -418,8 +418,6 @@ Class Entity Extends DynamicObject
 		
 		Local c:=New T( Self )
 		
-		AddComponent( c )
-		
 		Return c
 	End