8000 null check for closing editer · shader-park/shader-park-website@e475bf8 · GitHub
[go: up one dir, main page]

Skip to content

Commit e475bf8

Browse files
committed
null check for closing editer
1 parent e8e4f38 commit e475bf8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

js/components/UniformGUI.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,10 @@ export default {
5151
},
5252
selectedSculptureUniforms(uniforms) {
5353
const uniformsToSkip = {'time':0, 'opacity': 0, "stepSize": 0, 'mouse':0, 'sculptureCenter':0};
54-
uniforms = uniforms.filter(uniform => !(uniform.name in uniformsToSkip));
54+
if(uniforms) {
55+
uniforms = uniforms.filter(uniform => !(uniform.name in uniformsToSkip));
56+
}
57+
5558
if(uniforms && uniforms.length){
5659
this.gui.domElement.style.display = 'block';
5760
uniforms.forEach(uniform => {

0 commit comments

Comments
 (0)
0