8000 check if uniforms is an array · shader-park/shader-park-website@9433abe · GitHub
[go: up one dir, main page]

Skip to content

Commit 9433abe

Browse files
committed
check if uniforms is an array
1 parent cbc8823 commit 9433abe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/components/UniformGUI.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export default {
5050
}
5151
},
5252
selectedSculptureUniforms(uniforms) {
53-
if(uniforms){
53+
if(uniforms && uniforms.length){
5454
this.gui.domElement.style.display = 'block';
5555
uniforms.forEach(uniform => {
5656
if(!(uniform.name in this.guiParams)) {

0 commit comments

Comments
 (0)
0