Fix tag dressup to deal with inactive base operation

This commit is contained in:
Markus Lampert
2019-12-15 17:51:43 -08:00
parent 3fce7da269
commit fd9b2d4cdb
2 changed files with 6 additions and 1 deletions

View File

@@ -552,7 +552,10 @@ class PathData:
self.obj = obj
self.wire, rapid = PathGeom.wireForPath(obj.Base.Path)
self.rapid = _RapidEdges(rapid)
self.edges = self.wire.Edges
if self.wire:
self.edges = self.wire.Edges
else:
self.edges = []
self.baseWire = self.findBottomWire(self.edges)
def findBottomWire(self, edges):

View File

@@ -382,6 +382,8 @@ def wireForPath(path, startPoint = Vector(0, 0, 0)):
rapid.append(edge)
edges.append(edge)
startPoint = commandEndPoint(cmd, startPoint)
if not edges:
return (None, rapid)
return (Part.Wire(edges), rapid)
def wiresForPath(path, startPoint = Vector(0, 0, 0)):