Ver Fonte

ShaderTarget: prevent apply on FXAnimation

Tom Spira há 6 meses atrás
pai
commit
d88963d958
1 ficheiros alterados com 1 adições e 1 exclusões
  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)