소스 검색

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);
 	}