mirror of
https://github.com/3b1b/manim.git
synced 2025-04-13 09:47:07 +00:00
Make sure Mobject.is_fixed_in_frame stays updated with uniforms
This commit is contained in:
parent
ee1594a3cb
commit
ba23fbe71e
1 changed files with 2 additions and 0 deletions
|
@ -1386,11 +1386,13 @@ class Mobject(object):
|
|||
@affects_shader_info_id
|
||||
def fix_in_frame(self):
|
||||
self.uniforms["is_fixed_in_frame"] = 1.0
|
||||
self.is_fixed_in_frame = True
|
||||
return self
|
||||
|
||||
@affects_shader_info_id
|
||||
def unfix_from_frame(self):
|
||||
self.uniforms["is_fixed_in_frame"] = 0.0
|
||||
self.is_fixed_in_frame = False
|
||||
return self
|
||||
|
||||
@affects_shader_info_id
|
||||
|
|
Loading…
Add table
Reference in a new issue