[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:
@@ -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())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user