mirror of
https://github.com/3b1b/manim.git
synced 2025-07-29 21:12:35 +08:00
Check if joint_angles are in locked_data_keys before computing
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user