Draft: fixed edit for dimension objects
This commit is contained in:
committed by
Yorik van Havre
parent
81e5a3487b
commit
c1696f20dc
@@ -236,8 +236,8 @@ class Edit:
|
||||
|
||||
#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"
|
||||
@@ -996,7 +996,7 @@ class Edit:
|
||||
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)
|
||||
@@ -1035,7 +1035,7 @@ class Edit:
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user