public void onSolderEdges() { editor Editor = "Editor"; TerrainEditor ETerrainEditor = "ETerrainEditor"; // # Work with all terrains on the loaded level. TerrainSolderEdgesAction action = new ObjectCreator("TerrainSolderEdgesAction").Create(); action.solder(); action.addToManager(Editor.getUndoManager()); ETerrainEditor.isDirty = true; }
public void onSmoothHeightmap() { editor Editor = "Editor"; if (!this.getActiveTerrain().AsBool()) return; // Show the dialog first and let the user // set the smoothing parameters. // Now create the terrain smoothing action to // get the work done and perform later undos. TerrainSmoothAction action = new ObjectCreator("TerrainSmoothAction").Create(); action.smooth(this.getActiveTerrain().AsString(), 1.0f, 1); action.addToManager(Editor.getUndoManager()); }