Fixed input field update again.
This commit is contained in:
committed by
Yorik van Havre
parent
1858793512
commit
a93bda2805
@@ -83,6 +83,7 @@ class ObjectOp(PathOp.ObjectOp):
|
||||
|
||||
if PathOp.FeatureBaseGeometry & self.opFeatures(obj):
|
||||
if prop == 'Base' and len(obj.Base) == 1:
|
||||
PathLog.info("opOnChanged(%s, %s)" % (obj.Label, prop))
|
||||
try:
|
||||
(base, sub) = obj.Base[0]
|
||||
bb = base.Shape.BoundBox # parent boundbox
|
||||
@@ -120,6 +121,7 @@ class ObjectOp(PathOp.ObjectOp):
|
||||
self.areaOpOnChanged(obj, prop)
|
||||
|
||||
def opSetDefaultValues(self, obj):
|
||||
PathLog.info("opSetDefaultValues(%s)" % (obj.Label))
|
||||
if PathOp.FeatureDepths & self.opFeatures(obj):
|
||||
try:
|
||||
shape = self.areaOpShapeForDepths(obj)
|
||||
|
||||
@@ -199,6 +199,7 @@ class TaskPanelPage(object):
|
||||
value = FreeCAD.Units.Quantity(widget.text()).Value
|
||||
if getattr(obj, prop) != value:
|
||||
PathLog.debug("updateInputField(%s, %s): %.2f -> %.2f" % (obj.Label, prop, getattr(obj, prop), value))
|
||||
setattr(obj, prop, value)
|
||||
|
||||
class TaskPanelBaseGeometryPage(TaskPanelPage):
|
||||
DataObject = QtCore.Qt.ItemDataRole.UserRole
|
||||
|
||||
Reference in New Issue
Block a user