2
0
Эх сурвалжийг харах

ShaderTarget: prevent apply on FXAnimation

Tom Spira 6 сар өмнө
parent
commit
d88963d958

+ 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)