mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +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
|
@affects_shader_info_id
|
||||||
def fix_in_frame(self):
|
def fix_in_frame(self):
|
||||||
self.uniforms["is_fixed_in_frame"] = 1.0
|
self.uniforms["is_fixed_in_frame"] = 1.0
|
||||||
|
self.is_fixed_in_frame = True
|
||||||
return self
|
return self
|
||||||
|
|
||||||
@affects_shader_info_id
|
@affects_shader_info_id
|
||||||
def unfix_from_frame(self):
|
def unfix_from_frame(self):
|
||||||
self.uniforms["is_fixed_in_frame"] = 0.0
|
self.uniforms["is_fixed_in_frame"] = 0.0
|
||||||
|
self.is_fixed_in_frame = False
|
||||||
return self
|
return self
|
||||||
|
|
||||||
@affects_shader_info_id
|
@affects_shader_info_id
|
||||||
|
|
Loading…
Add table
Reference in a new issue