- make generate entropies action create no undo entry
- make generate entropies action more robust in terms of float values < 1

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9089 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
nor..67 13 years ago
parent ebf0d1647c
commit 0445afb461
  1. 7
      sdk/jme3-terrain-editor/src/com/jme3/gde/terraineditor/tools/GenerateTerrainEntropiesAction.java

@ -38,12 +38,12 @@ public class GenerateTerrainEntropiesAction extends AbstractToolAction {
private float max = 0; private float max = 0;
public void incrementProgress(float f) { public void incrementProgress(float f) {
progress += f; progress += f * 100.0f;
progressHandle.progress((int) progress); progressHandle.progress((int) progress);
} }
public void setMonitorMax(float f) { public void setMonitorMax(float f) {
max = f; max = f * 100.0f;
progressHandle.switchToDeterminate((int) (f)); progressHandle.switchToDeterminate((int) (f));
} }
@ -59,7 +59,8 @@ public class GenerateTerrainEntropiesAction extends AbstractToolAction {
} finally { } finally {
progressHandle.finish(); progressHandle.finish();
} }
return true; //return null, no undo entry created
return null;
} }
@Override @Override

Loading…
Cancel
Save