mirror of
https://github.com/3b1b/manim.git
synced 2025-09-01 00:48:45 +00:00
Ensure ShaderWrapper.copy copies uniforms which are numpy arrays
This commit is contained in:
parent
cc8922155d
commit
66f695a1ed
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ class ShaderWrapper(object):
|
|||
if result.vert_indices is not None:
|
||||
result.vert_indices = np.array(self.vert_indices)
|
||||
if self.uniforms:
|
||||
result.uniforms = dict(self.uniforms)
|
||||
result.uniforms = {key: np.array(value) for key, value in self.uniforms.items()}
|
||||
if self.texture_paths:
|
||||
result.texture_paths = dict(self.texture_paths)
|
||||
return result
|
||||
|
|
Loading…
Add table
Reference in a new issue