Browse Source

ShaderNode: Fix .isArrayInput (#27428)

sunag 1 year ago
parent
commit
b1d1cdfbcb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      examples/jsm/nodes/shadernode/ShaderNode.js

+ 1 - 1
examples/jsm/nodes/shadernode/ShaderNode.js

@@ -341,7 +341,7 @@ class ShaderNodeInternal extends Node {
 
 	get isArrayInput() {
 
-		return /^\(\s+?\[/.test( this.jsFunc.toString() );
+		return /^\((\s+)?\[/.test( this.jsFunc.toString() );
 
 	}