Skip to content

Commit

Permalink
Draft: Changing text or arrows of a Dimension now marks it to be reco…
Browse files Browse the repository at this point in the history
…mputed
  • Loading branch information
yorikvanhavre committed Dec 12, 2015
1 parent 3dcc557 commit 1834661
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Mod/Draft/Draft.py
Expand Up @@ -3589,9 +3589,11 @@ def onChanged(self, vobj, prop):
self.font.size = vobj.FontSize.Value
if hasattr(self,"font3d"):
self.font3d.size = vobj.FontSize.Value*100
vobj.Object.touch()
elif (prop == "FontName") and hasattr(vobj,"FontName"):
if hasattr(self,"font") and hasattr(self,"font3d"):
self.font.name = self.font3d.name = str(vobj.FontName)
vobj.Object.touch()
elif (prop == "LineColor") and hasattr(vobj,"LineColor"):
if hasattr(self,"color"):
c = vobj.LineColor
Expand Down Expand Up @@ -3640,6 +3642,7 @@ def onChanged(self, vobj, prop):
self.marks.addChild(s2)
self.node.insertChild(self.marks,2)
self.node3d.insertChild(self.marks,2)
vobj.Object.touch()
else:
self.updateData(vobj.Object,"Start")

Expand Down Expand Up @@ -3931,9 +3934,11 @@ def onChanged(self, vobj, prop):
self.font.size = vobj.FontSize.Value
if hasattr(self,"font3d"):
self.font3d.size = vobj.FontSize.Value*100
vobj.Object.touch()
elif prop == "FontName":
if hasattr(self,"font") and hasattr(self,"font3d"):
self.font.name = self.font3d.name = str(vobj.FontName)
vobj.Object.touch()
elif prop == "LineColor":
if hasattr(self,"color"):
c = vobj.LineColor
Expand Down Expand Up @@ -3977,6 +3982,7 @@ def onChanged(self, vobj, prop):
self.marks.addChild(s2)
self.node.insertChild(self.marks,2)
self.node3d.insertChild(self.marks,2)
vobj.Object.touch()
else:
self.updateData(vobj.Object, None)

Expand Down

0 comments on commit 1834661

Please sign in to comment.