Skip to content

Commit

Permalink
Draft: Fix regression in trimex command
Browse files Browse the repository at this point in the history
  • Loading branch information
marioalexis84 committed Apr 11, 2021
1 parent 111a21e commit b42994f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Mod/Draft/draftguitools/gui_trimex.py
Expand Up @@ -120,7 +120,7 @@ def proceed(self):
self.extrudeMode = True
self.ghost = [trackers.ghostTracker([self.obj])]
self.normal = self.obj.Shape.Faces[0].normalAt(0.5, 0.5)
self.ghost += [trackers.lineTracker()] * len(self.obj.Shape.Vertexes)
self.ghost += [trackers.lineTracker() for _v in self.obj.Shape.Vertexes]
elif len(self.obj.Shape.Faces) > 1:
# face extrude mode, a new object is created
ss = Gui.Selection.getSelectionEx()[0]
Expand All @@ -131,7 +131,7 @@ def proceed(self):
self.extrudeMode = True
self.ghost = [trackers.ghostTracker([self.obj])]
self.normal = self.obj.Shape.Faces[0].normalAt(0.5, 0.5)
self.ghost += [trackers.lineTracker()] * len(self.obj.Shape.Vertexes)
self.ghost += [trackers.lineTracker() for _v in self.obj.Shape.Vertexes]
else:
# normal wire trimex mode
self.color = self.obj.ViewObject.LineColor
Expand Down

0 comments on commit b42994f

Please sign in to comment.