Set wind turbulence to 0 when average speed is 0

This commit is contained in:
SiboVG 2023-11-17 02:08:19 +01:00
parent 8ad74c0b27
commit cdeef020b7

View File

@ -146,6 +146,9 @@ public class SimulationOptions implements ChangeSource, Cloneable, SimulationOpt
if (MathUtil.equals(this.windAverage, windAverage))
return;
this.windAverage = MathUtil.max(windAverage, 0);
if (MathUtil.equals(this.windAverage, 0)) {
setWindTurbulenceIntensity(0);
}
fireChangeEvent();
}