Sfoglia il codice sorgente

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

Nicolas Cannasse 5 anni fa
parent
commit
6aeee59878
1 ha cambiato i file con 0 aggiunte e 2 eliminazioni
  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();
 	}