Browse Source

Disable selection effect on emitters, prevents shader compilation errors

trethaller 6 năm trước cách đây
mục cha
commit
6602e1b5f2
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      hrt/prefab/fx/Emitter.hx

+ 1 - 1
hrt/prefab/fx/Emitter.hx

@@ -972,7 +972,7 @@ class Emitter extends Object3D {
 		if(debugShape != null)
 		if(debugShape != null)
 			debugShape.visible = b;
 			debugShape.visible = b;
 
 
-		if( emitterObj.batch != null ) {
+		if( false && emitterObj.batch != null ) {  // Disabling, selection causes crashes
 			if( b ) {
 			if( b ) {
 				var shader = new h3d.shader.FixedColor(0xffffff);
 				var shader = new h3d.shader.FixedColor(0xffffff);
 				var p = emitterObj.batch.material.allocPass("highlight");
 				var p = emitterObj.batch.material.allocPass("highlight");