Make sure Mobject.become works with bounding_box

This commit is contained in:
Grant Sanderson 2023-01-16 13:55:53 -08:00
parent 8ef93b0f9d
commit 1a15756330

View file

@ -654,6 +654,7 @@ class Mobject(object):
for sm1, sm2 in zip(family1, family2):
sm1.set_data(sm2.data)
sm1.set_uniforms(sm2.uniforms)
sm1.bounding_box[:] = sm2.bounding_box
sm1.shader_folder = sm2.shader_folder
sm1.texture_paths = sm2.texture_paths
sm1.depth_test = sm2.depth_test