瀏覽代碼

don't call customMake if not enabled

Nicolas Cannasse 4 年之前
父節點
當前提交
162393dc0e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      hrt/prefab/Prefab.hx

+ 1 - 1
hrt/prefab/Prefab.hx

@@ -277,7 +277,7 @@ class Prefab {
 	function makeChildren( ctx : Context, p : Prefab ) {
 		if( ctx.shared.customMake == null )
 			p.make(ctx);
-		else
+		else if( p.enabled )
 			ctx.shared.customMake(ctx, p);
 	}