浏览代码

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} ]`;
 
 	}