[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:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user