Fixed input field update again.

This commit is contained in:
Markus Lampert
2017-08-12 18:04:19 -07:00
committed by Yorik van Havre
parent 1858793512
commit a93bda2805
2 changed files with 3 additions and 0 deletions

View File

@@ -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)

View File

@@ -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