Browse Source

Fix missing #if debug in MeshGenerator.hx

ShiroSmith 5 years ago
parent
commit
7b40c9a5be
1 changed files with 3 additions and 1 deletions
  1. 3 1
      hrt/prefab/l3d/MeshGenerator.hx

+ 3 - 1
hrt/prefab/l3d/MeshGenerator.hx

@@ -151,10 +151,12 @@ class MeshGenerator extends Object3D {
 		}
 		updateInstance(ctx);
 
-		#if editor
+		#if editor 
 		if( customScene == null ) {
 			customScene = new h3d.scene.Scene(true, false);
+			#if debug
 			customScene.checkPasses = false;
+			#end
 		}
 		#end