浏览代码

Shader targets: fix missing super call

lviguier 8 月之前
父节点
当前提交
08c2f85154
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      hrt/prefab/fx/ShaderTarget.hx

+ 1 - 0
hrt/prefab/fx/ShaderTarget.hx

@@ -26,6 +26,7 @@ class ShaderTargetObj extends h3d.scene.Object {
 	}
 	}
 
 
 	override function onRemove() {
 	override function onRemove() {
+		super.onRemove();
 		for ( s in shadersRoot.findAll(Shader) )
 		for ( s in shadersRoot.findAll(Shader) )
 			s.dispose();
 			s.dispose();
 	}
 	}