From 85571ac9ad4e626a63ccda733216cfca98f89e93 Mon Sep 17 00:00:00 2001 From: Markus Lampert Date: Mon, 20 Nov 2017 20:50:26 -0800 Subject: [PATCH] Fixed updating view after tag generation. --- src/Mod/Path/PathScripts/PathDressupTagGui.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Mod/Path/PathScripts/PathDressupTagGui.py b/src/Mod/Path/PathScripts/PathDressupTagGui.py index 6b6a7410a8..1dc8005163 100644 --- a/src/Mod/Path/PathScripts/PathDressupTagGui.py +++ b/src/Mod/Path/PathScripts/PathDressupTagGui.py @@ -182,9 +182,11 @@ class PathDressupTagTaskPanel: def generateNewTags(self): count = self.form.sbCount.value() + PathLog.track(count) if not self.obj.Proxy.generateTags(self.obj, count): self.obj.Proxy.execute(self.obj) - + self.Positions = self.obj.Positions + self.Disabled = self.obj.Disabled self.updateTagsView() def updateModel(self): @@ -212,7 +214,7 @@ class PathDressupTagTaskPanel: def updateTagsViewWith(self, tags): self.tags = tags - self.Positions = [FreeCAD.Vector(t[0], t[1], 0) for t in self.tags] + self.Positions = [FreeCAD.Vector(t[0], t[1], 0) for t in tags] self.Disabled = [i for (i,t) in enumerate(self.tags) if not t[2]] self.updateTagsView()