mirror of
https://github.com/3b1b/manim.git
synced 2025-07-31 22:13:30 +08:00
Make sure Mobject.is_fixed_in_frame stays updated with uniforms
This commit is contained in:
@ -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
|
||||||
|
Reference in New Issue
Block a user