Pārlūkot izejas kodu

don't call customMake if not enabled

Nicolas Cannasse 4 gadi atpakaļ
vecāks
revīzija
162393dc0e
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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);
 	}