Check if joint_angles are in locked_data_keys before computing

This commit is contained in:
Grant Sanderson
2023-01-15 20:31:27 -08:00
parent ba9f61b50b
commit 29f51a7c6a

View File

@ -1072,6 +1072,8 @@ class VMobject(Mobject):
def get_joint_angles(self, refresh: bool = False):
if not self.needs_new_joint_angles and not refresh:
return self.data["joint_angle"]
if "joint_angle" in self.locked_data_keys:
return self.data["joint_angle"]
self.needs_new_joint_angles = False