浏览代码

don't dispose textures surfaces on terrain remove (keep them in resources cache)

Nicolas Cannasse 5 年之前
父节点
当前提交
6aeee59878
共有 1 个文件被更改,包括 0 次插入2 次删除
  1. 0 2
      hrt/prefab/terrain/TerrainMesh.hx

+ 0 - 2
hrt/prefab/terrain/TerrainMesh.hx

@@ -38,8 +38,6 @@ class TerrainMesh extends h3d.scene.Object {
 
 	override function onRemove() {
 		super.onRemove();
-		for( s in surfaces )
-			s.dispose();
 		if( surfaceArray != null )
 			surfaceArray.dispose();
 	}