Explorar o código

don't call customMake if not enabled

Nicolas Cannasse %!s(int64=4) %!d(string=hai) anos
pai
achega
162393dc0e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);
 	}