Skip to content

Commit

Permalink
added missing self.stockBB instantiation
Browse files Browse the repository at this point in the history
job boundbox object was missing in opSetDefaultValues()
  • Loading branch information
Russ4262 committed Jun 15, 2019
1 parent a94d881 commit 4cff627
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Mod/Path/PathScripts/PathAreaOp.py
Expand Up @@ -215,6 +215,7 @@ def opSetDefaultValues(self, obj, job):
# Adjust start and final depths if rotation is enabled
if obj.EnableRotation != 'Off':
self.initWithRotation = True
self.stockBB = PathUtils.findParentJob(obj).Stock.Shape.BoundBox
# Calculate rotational distances/radii
opHeights = self.opDetermineRotationRadii(obj) # return is list with tuples [(xRotRad, yRotRad, zRotRad), (clrOfst, safOfset)]
(xRotRad, yRotRad, zRotRad) = opHeights[0]
Expand Down

0 comments on commit 4cff627

Please sign in to comment.