Fix tag dressup to deal with inactive base operation
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -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)):
|
||||
|
||||
Reference in New Issue
Block a user