Skip to content

Commit

Permalink
Merge pull request #4729 from marioalexis84/draft-gui_trimex
Browse files Browse the repository at this point in the history
Draft: Fix regression in trimex command
  • Loading branch information
yorikvanhavre committed Apr 19, 2021
2 parents 8b0c58d + b42994f commit 97f45b4
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 97f45b4

Please sign in to comment.