mirror of
https://github.com/3b1b/manim.git
synced 2025-08-21 05:44:04 +00:00
When shader_id is updated, have ancestors mark data as changed
This commit is contained in:
parent
0414f8786c
commit
b8931e7b9c
1 changed files with 2 additions and 0 deletions
|
@ -2004,6 +2004,8 @@ class Mobject(object):
|
|||
if submob.shader_wrapper is not None:
|
||||
submob.shader_wrapper.depth_test = submob.depth_test
|
||||
submob.shader_wrapper.refresh_id()
|
||||
for mob in (self, *self.get_ancestors()):
|
||||
mob._data_has_changed = True
|
||||
return self
|
||||
|
||||
def get_shader_wrapper(self, ctx: Context) -> ShaderWrapper:
|
||||
|
|
Loading…
Add table
Reference in a new issue