瀏覽代碼

ShaderTargets: fix shader targets obj not removed

LeoVgr 8 月之前
父節點
當前提交
dbd46cc7f0
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      hrt/prefab/fx/FX.hx

+ 1 - 1
hrt/prefab/fx/FX.hx

@@ -531,7 +531,7 @@ class FXAnimation extends h3d.scene.Object {
 
 		if (shaderTargets != null)
 			for (st in shaderTargets)
-				st.onRemove();
+				st.remove();
 
 		super.onRemove();
 	}