Set wind turbulence to 0 when average speed is 0
This commit is contained in:
parent
8ad74c0b27
commit
cdeef020b7
@ -146,6 +146,9 @@ public class SimulationOptions implements ChangeSource, Cloneable, SimulationOpt
|
|||||||
if (MathUtil.equals(this.windAverage, windAverage))
|
if (MathUtil.equals(this.windAverage, windAverage))
|
||||||
return;
|
return;
|
||||||
this.windAverage = MathUtil.max(windAverage, 0);
|
this.windAverage = MathUtil.max(windAverage, 0);
|
||||||
|
if (MathUtil.equals(this.windAverage, 0)) {
|
||||||
|
setWindTurbulenceIntensity(0);
|
||||||
|
}
|
||||||
fireChangeEvent();
|
fireChangeEvent();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user