mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Check for mismatched keys in uniform interpolation
This commit is contained in:
parent
05dd399270
commit
f5cb2bfa52
1 changed files with 2 additions and 0 deletions
|
@ -1730,6 +1730,8 @@ class Mobject(object):
|
|||
self.data[key] = func(md1, md2, alpha)
|
||||
|
||||
for key in self.uniforms:
|
||||
if key not in mobject1.uniforms or key not in mobject2.uniforms:
|
||||
continue
|
||||
self.uniforms[key] = interpolate(
|
||||
mobject1.uniforms[key],
|
||||
mobject2.uniforms[key],
|
||||
|
|
Loading…
Add table
Reference in a new issue