Parcourir la source

dev-storagearrayelement-cleanup

sunag il y a 1 an
Parent
commit
9e48d184a1
1 fichiers modifiés avec 0 ajouts et 6 suppressions
  1. 0 6
      examples/jsm/nodes/utils/ArrayElementNode.js

+ 0 - 6
examples/jsm/nodes/utils/ArrayElementNode.js

@@ -24,12 +24,6 @@ class ArrayElementNode extends Node { // @TODO: If extending from TempNode it br
 		const nodeSnippet = this.node.build( builder );
 		const indexSnippet = this.indexNode.build( builder, 'uint' );
 
-		if ( this.node.isStorageBufferNode && ! builder.isAvailable( 'storageBuffer' ) ) {
-
-			return nodeSnippet;
-
-		}
-
 		return `${nodeSnippet}[ ${indexSnippet} ]`;
 
 	}