Skip to content

Commit

Permalink
ShaderTarget: fix shader target disabled that was still used
Browse files Browse the repository at this point in the history
LeoVgr committed Jan 30, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent bd0c777 commit 91ea483
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion hrt/prefab/fx/FX.hx
Original file line number Diff line number Diff line change
@@ -53,8 +53,11 @@ class FXAnimation extends h3d.scene.Object {
if(root == null)
root = def;

for (shaderTarget in def.flatten(hrt.prefab.fx.ShaderTarget))
for (shaderTarget in def.flatten(hrt.prefab.fx.ShaderTarget)) {
if (!shaderTarget.enabled)
continue;
shaderTarget.applyShaderTarget(def, shaderTarget.target);
}

initObjAnimations(root);
initEmitters(root);

0 comments on commit 91ea483

Please sign in to comment.