mirror of
https://github.com/3b1b/manim.git
synced 2025-11-14 12:07:45 +00:00
Only update shader wrapper when stroke_behind genuinely changes
This commit is contained in:
parent
87ca6e56aa
commit
b9645ad196
1 changed files with 3 additions and 2 deletions
|
|
@ -190,8 +190,9 @@ class VMobject(Mobject):
|
|||
|
||||
if background is not None:
|
||||
for mob in self.get_family(recurse):
|
||||
mob.stroke_behind = background
|
||||
mob.refresh_shader_wrapper_id()
|
||||
if mob.stroke_behind != background:
|
||||
mob.refresh_shader_wrapper_id()
|
||||
mob.stroke_behind = background
|
||||
|
||||
if flat is not None:
|
||||
self.set_flat_stroke(flat)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue