Draft: fix FlipDimension for LinearDimension
During the re-organization of the `Dimension` classes, a new class `LinearDimension` was created. So this `FlipDimension` is updated to handle it.
This commit is contained in:
@@ -68,7 +68,8 @@ class FlipDimension(gui_base.GuiCommandNeedsSelection):
|
||||
super(Draft_FlipDimension, self).Activated()
|
||||
|
||||
for o in Gui.Selection.getSelection():
|
||||
if utils.get_type(o) in ("Dimension", "AngularDimension"):
|
||||
if utils.get_type(o) in ("Dimension",
|
||||
"LinearDimension", "AngularDimension"):
|
||||
self.doc.openTransaction("Flip dimension")
|
||||
_cmd = "App.activeDocument()." + o.Name + ".Normal"
|
||||
_cmd += " = "
|
||||
|
||||
Reference in New Issue
Block a user