[Draft] Fix bug in data entry on scale w/ uniform

When entering a scale factor, if uniform scaling is on, the current code
keeps appending zeroes as you type, forcing you to delete them before
entering your next digit. This commit fixes that by ensuring that the
widget that you are currently editing is not updated continuously.

Fixes #0004601
This commit is contained in:
Chris Hennes
2021-03-23 14:18:19 -05:00
parent 05b0ff2fd1
commit 3f5fbef881

View File

@@ -119,9 +119,12 @@ class ScaleTaskPanel:
def setValue(self, val=None):
"""Set the value of the points."""
if self.lock.isChecked():
self.xValue.setValue(val)
self.yValue.setValue(val)
self.zValue.setValue(val)
if not self.xValue.hasFocus():
self.xValue.setValue(val)
if not self.yValue.hasFocus():
self.yValue.setValue(val)
if not self.zValue.hasFocus():
self.zValue.setValue(val)
if self.sourceCmd:
self.sourceCmd.scaleGhost(self.xValue.value(),self.yValue.value(),self.zValue.value(),self.relative.isChecked())