mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Flatten uniform arrays
This commit is contained in:
parent
62a4ea5165
commit
0804109301
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ def set_program_uniform(
|
||||||
uniform_mirror = PROGRAM_UNIFORM_MIRRORS[pid]
|
uniform_mirror = PROGRAM_UNIFORM_MIRRORS[pid]
|
||||||
|
|
||||||
if type(value) is np.ndarray and value.ndim > 0:
|
if type(value) is np.ndarray and value.ndim > 0:
|
||||||
value = tuple(value)
|
value = tuple(value.flatten())
|
||||||
if uniform_mirror.get(name, None) == value:
|
if uniform_mirror.get(name, None) == value:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue