Skip to content

Commit

Permalink
Draft: fixed edit for dimension objects
Browse files Browse the repository at this point in the history
  • Loading branch information
carlopav authored and yorikvanhavre committed May 4, 2020
1 parent cbeca1b commit ad92c99
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Mod/Draft/draftguitools/gui_edit.py
Expand Up @@ -236,8 +236,8 @@ def __init__(self):

#list of supported Draft and Arch objects
self.supportedObjs = ["BezCurve","Wire","BSpline","Circle","Rectangle",
"Polygon","Dimension","Space","Structure","PanelCut",
"PanelSheet","Wall", "Window"]
"Polygon","Dimension","LinearDimension","Space",
"Structure","PanelCut","PanelSheet","Wall", "Window"]

#list of supported Part objects (they don't have a proxy)
#TODO: Add support for "Part::Circle" "Part::RegularPolygon" "Part::Plane" "Part::Ellipse" "Part::Vertex" "Part::Spiral"
Expand Down Expand Up @@ -996,7 +996,7 @@ def getEditPoints(self, obj):
return self.getRectanglePts(obj)
elif objectType == "Polygon":
return self.getPolygonPts(obj)
elif objectType == "LinearDimension":
elif objectType in ("Dimension","LinearDimension"):
return self.getDimensionPts(obj)
elif objectType == "Wall":
return self.getWallPts(obj)
Expand Down Expand Up @@ -1035,7 +1035,7 @@ def update(self, obj, nodeIndex, v):
self.updateRectangle(obj, nodeIndex, v)
elif objectType == "Polygon":
self.updatePolygon(obj, nodeIndex, v)
elif objectType == "LinearDimension":
elif objectType in ("Dimension","LinearDimension"):
self.updateDimension(obj, nodeIndex, v)
elif objectType == "Sketch":
self.updateSketch(obj, nodeIndex, v)
Expand Down

0 comments on commit ad92c99

Please sign in to comment.