Draft: Added a recompute() at the end of Upgrade and Downgrade

This commit is contained in:
Yorik van Havre
2015-01-16 18:05:02 -02:00
parent 90540deb29
commit 62b0498e6f

View File

@@ -2604,6 +2604,7 @@ class Upgrade(Modifier):
FreeCADGui.addModule("Draft")
self.commit(translate("draft","Upgrade"),
['Draft.upgrade(FreeCADGui.Selection.getSelection(),delete=True)'])
FreeCAD.ActiveDocument.recompute()
self.finish()
@@ -2633,6 +2634,7 @@ class Downgrade(Modifier):
FreeCADGui.addModule("Draft")
self.commit(translate("draft","Downgrade"),
['Draft.downgrade(FreeCADGui.Selection.getSelection(),delete=True)'])
FreeCAD.ActiveDocument.recompute()
self.finish()