Fix ShapeString attachment to Face

This commit is contained in:
wandererfan
2019-02-18 14:50:22 -05:00
committed by Yorik van Havre
parent 90d24159aa
commit 11d0bc9e90
4 changed files with 164 additions and 74 deletions

View File

@@ -2227,10 +2227,15 @@ class ShapeString(Creator):
def Activated(self):
name = translate("draft","ShapeString")
Creator.Activated(self,name)
self.creator = Creator
if self.ui:
self.ui.sourceCmd = self
self.taskmode = Draft.getParam("UiMode",1)
if self.taskmode:
try:
del self.task
except AttributeError:
pass
self.task = DraftGui.ShapeStringTaskPanel()
self.task.sourceCmd = self
DraftGui.todo.delay(FreeCADGui.Control.showDialog,self.task)