Commit 37904fc2 authored by Eric Tobias's avatar Eric Tobias

Merge branch 'dev' of git.list.lu:nui/TULIP-CPS into dev

parents dfe210ee c912aa61
......@@ -94,7 +94,8 @@ public final class ValueWidget extends BaseWidget implements InformationProvider
this.baseValue = getVariable().getValue();
getVariable().setValue(0d);
} else {
this.baseValue = Double.NaN;
// this.baseValue = Double.NaN;
this.baseValue = getVariable().getValue();
}
dialAngle = lowerStopAngle;
......@@ -117,10 +118,16 @@ public final class ValueWidget extends BaseWidget implements InformationProvider
super.actionLift(tangibleObject);
// set to 0 only if placing widget
if (!modifyValueOnRotation) {
getVariable().setValue(0d);
}
else {
getVariable().setValue(baseValue);
}
}
@Override
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment