Skip to content

Commit 91ea483

Browse files
committed
ShaderTarget: fix shader target disabled that was still used
1 parent bd0c777 commit 91ea483

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

hrt/prefab/fx/FX.hx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,11 @@ class FXAnimation extends h3d.scene.Object {
5353
if(root == null)
5454
root = def;
5555

56-
for (shaderTarget in def.flatten(hrt.prefab.fx.ShaderTarget))
56+
for (shaderTarget in def.flatten(hrt.prefab.fx.ShaderTarget)) {
57+
if (!shaderTarget.enabled)
58+
continue;
5759
shaderTarget.applyShaderTarget(def, shaderTarget.target);
60+
}
5861

5962
initObjAnimations(root);
6063
initEmitters(root);

0 commit comments

Comments
 (0)