mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Pass tuples and not arrays to uniforms
This commit is contained in:
parent
3b146636b4
commit
d5a88d0fa4
1 changed files with 2 additions and 0 deletions
|
@ -412,6 +412,8 @@ class Camera(object):
|
|||
shader[name].value = tid
|
||||
for name, value in it.chain(shader_wrapper.uniforms.items(), self.perspective_uniforms.items()):
|
||||
try:
|
||||
if isinstance(value, np.ndarray):
|
||||
value = tuple(value)
|
||||
shader[name].value = value
|
||||
except KeyError:
|
||||
pass
|
||||
|
|
Loading…
Add table
Reference in a new issue