浏览代码

Disable selection effect on emitters, prevents shader compilation errors

trethaller 6 年之前
父节点
当前提交
6602e1b5f2
共有 1 个文件被更改,包括 1 次插入1 次删除
  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)
 			debugShape.visible = b;
 
-		if( emitterObj.batch != null ) {
+		if( false && emitterObj.batch != null ) {  // Disabling, selection causes crashes
 			if( b ) {
 				var shader = new h3d.shader.FixedColor(0xffffff);
 				var p = emitterObj.batch.material.allocPass("highlight");