mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Check if joint_angles are in locked_data_keys before computing
This commit is contained in:
parent
ba9f61b50b
commit
29f51a7c6a
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue