Browse Source

don't call customMake if not enabled

Nicolas Cannasse 4 năm trước cách đây
mục cha
commit
162393dc0e
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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);
 	}