瀏覽代碼

terrain: disable auto-format update

trethaller 5 年之前
父節點
當前提交
21bc83ee65
共有 1 個文件被更改,包括 2 次插入0 次删除
  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
+			*/
 		}
 	}