Răsfoiți Sursa

terrain: disable auto-format update

trethaller 5 ani în urmă
părinte
comite
21bc83ee65
1 a modificat fișierele cu 2 adăugiri și 0 ștergeri
  1. 2 0
      hrt/prefab/terrain/Terrain.hx

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

@@ -351,6 +351,7 @@ class Terrain extends Object3D {
 			for( s in terrain.surfaces )
 				s.tilling /= tileSizeX;
 			terrain.updateSurfaceParams();
+			/* // Disable auto-upgrade for now
 			#if editor
 			// Need to create a terrain with the new params before saving
 			terrain.weightMapResolution = new h2d.col.IPoint(Math.round(tileSizeX * weightMapPixelPerMeter), Math.round(tileSizeY * weightMapPixelPerMeter));
@@ -366,6 +367,7 @@ class Terrain extends Object3D {
 			@:privateAccess shared.scene.editor.view.save();
 			trace("Terrain : " + name +  " is now up to date.");
 			#end
+			*/
 		}
 	}