[OpenSCAD] Fix bug in resize code

The resize code must recompute some kinds of objects prior to requesting
their bounding box, or the bounding box can be invalid.
This commit is contained in:
Chris Hennes
2021-03-25 13:48:28 -05:00
committed by wwmayer
parent 241be51afa
commit a0464d1b00
2 changed files with 13 additions and 0 deletions

View File

@@ -469,6 +469,7 @@ def p_resize_action(p):
auto = p[3]['auto']
print(new_size)
print(auto)
p[6][0].recompute()
old_bbox = p[6][0].Shape.BoundBox
print ("Old bounding box: " + str(old_bbox))
old_size = [old_bbox.XLength, old_bbox.YLength, old_bbox.ZLength]