Преглед изворни кода

dev-storagearrayelement-cleanup

sunag пре 1 година
родитељ
комит
9e48d184a1
1 измењених фајлова са 0 додато и 6 уклоњено
  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} ]`;
 
 	}