Closed snoyer closed 1 year ago
Color not being pickleable makes deepcopy, and therefore shape methods that return copies, fail if the color property is set
Color
deepcopy
color
Reprodution:
from build123d import Color, Solid box = Solid.make_box(1, 1, 1) box2 = box.translate((1, 1, 1)) # ok box.color = Color("red") box2 = box.translate((1, 1, 1)) # TypeError: cannot pickle 'OCP.Quantity.Quantity_ColorRGBA' object
Fixed. Thanks for pointing this out.
Color
not being pickleable makesdeepcopy
, and therefore shape methods that return copies, fail if thecolor
property is setReprodution: