浏览代码

Missing various calls to super.onRemove()

trethaller 5 年之前
父节点
当前提交
40a5d279c9
共有 3 个文件被更改,包括 3 次插入0 次删除
  1. 1 0
      hrt/prefab/fx/Emitter.hx
  2. 1 0
      hrt/prefab/l3d/SplineMesh.hx
  3. 1 0
      hrt/prefab/terrain/Tile.hx

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

@@ -374,6 +374,7 @@ class EmitterObject extends h3d.scene.Object {
 	}
 
 	override function onRemove() {
+		super.onRemove();
 		reset();
 	}
 

+ 1 - 0
hrt/prefab/l3d/SplineMesh.hx

@@ -75,6 +75,7 @@ enum SplineMeshMode {
 // Need to dipose the GPU buffer manually
 class SplineMeshBatch extends h3d.scene.MeshBatch {
 	override function onRemove() {
+		super.onRemove();
 		var splinemeshShader = material.mainPass.getShader(SplineMeshShader);
 		if( splinemeshShader != null ) {
 			splinemeshShader.points.dispose();

+ 1 - 0
hrt/prefab/terrain/Tile.hx

@@ -43,6 +43,7 @@ class Tile extends h3d.scene.Mesh {
 	}
 
 	override function onRemove() {
+		super.onRemove();
 		if( heightMap != null )
 			heightMap.dispose();
 		if( surfaceIndexMap != null )