Ensure ShaderWrapper.copy copies uniforms which are numpy arrays

This commit is contained in:
Grant Sanderson 2022-04-24 13:23:30 -07:00
parent cc8922155d
commit 66f695a1ed

View file

@ -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