فهرست منبع

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)