Skip to content

Commit

Permalink
add isArray input parameter check for their existance without .?
Browse files Browse the repository at this point in the history
  • Loading branch information
Attila Schroeder committed Nov 21, 2024
1 parent 6f5ec07 commit fb96b7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderers/webgpu/nodes/WGSLNodeBuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -1250,7 +1250,7 @@ ${ flowData.code }

let isArray = false;

if ( bufferNode.value?.array?.length && bufferNode.value?.itemSize ) {
if ( bufferNode.value && bufferNode.value.array && bufferNode.value.itemSize ) {

isArray = bufferType && bufferNode.value.array.length > bufferNode.value.itemSize;

Expand Down

0 comments on commit fb96b7e

Please sign in to comment.