Skip to content

Commit

Permalink
Nodes: StorageArrayElementNode - Remove check for non-existant proper…
Browse files Browse the repository at this point in the history
…ty. (#29276)

* Remove unused property

* cleanup

---------
  • Loading branch information
cmhhelgeson authored Sep 5, 2024
1 parent 275f201 commit 0bf5f09
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/nodes/utils/StorageArrayElementNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class StorageArrayElementNode extends ArrayElementNode {

if ( builder.isAvailable( 'storageBuffer' ) === false ) {

if ( ! this.node.instanceIndex && this.node.bufferObject === true ) {
if ( this.node.bufferObject === true ) {

builder.setupPBO( this.node );

Expand All @@ -55,15 +55,13 @@ class StorageArrayElementNode extends ArrayElementNode {

if ( builder.isAvailable( 'storageBuffer' ) === false ) {

const { node } = this;

if ( ! node.instanceIndex && this.node.bufferObject === true && isAssignContext !== true ) {
if ( this.node.bufferObject === true && isAssignContext !== true ) {

snippet = builder.generatePBO( this );

} else {

snippet = node.build( builder );
snippet = this.node.build( builder );

}

Expand Down

0 comments on commit 0bf5f09

Please sign in to comment.