- 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
This commit is contained in:
nor..67 2012-01-17 18:55:52 +00:00
parent ebf0d1647c
commit 0445afb461

View File

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