浏览代码

ShaderTarget: prevent apply on FXAnimation

Tom Spira 6 月之前
父节点
当前提交
d88963d958
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      hrt/prefab/fx/ShaderTarget.hx

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

@@ -29,7 +29,7 @@ class ShaderTargetObj extends h3d.scene.Object {
 				s.makeShader();
 				@:privateAccess s.updateInstance();
 			}
-			s.apply3d((o) -> return o != fxAnim);
+			s.apply3d((o) -> return !Std.isOfType(o, hrt.prefab.fx.FX.FXAnimation) );
 		}
 
 		if (fxAnim == null)