mirror of
https://github.com/3b1b/manim.git
synced 2025-11-14 17:47:44 +00:00
Bug fix in cases where empty array is passed to shader
This commit is contained in:
parent
06405d5758
commit
fa38b56fd8
1 changed files with 1 additions and 1 deletions
|
|
@ -439,7 +439,7 @@ class Camera(object):
|
|||
shader[name].value = tid
|
||||
for name, value in it.chain(self.perspective_uniforms.items(), shader_wrapper.uniforms.items()):
|
||||
try:
|
||||
if isinstance(value, np.ndarray):
|
||||
if isinstance(value, np.ndarray) and value.ndim > 0:
|
||||
value = tuple(value)
|
||||
shader[name].value = value
|
||||
except KeyError:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue