Sfoglia il codice sorgente

update vary snippet

sunag 4 anni fa
parent
commit
4cff87ddfd
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      examples/jsm/renderers/nodes/core/AttributeNode.js

+ 2 - 1
examples/jsm/renderers/nodes/core/AttributeNode.js

@@ -43,7 +43,8 @@ class AttributeNode extends Node {
 
 			if ( nodeVary === undefined ) {
 
-				nodeVary = builder.getVaryFromNode( this, attribute.type, attributeName );
+				nodeVary = builder.getVaryFromNode( this, attribute.type );
+				nodeVary.snippet = attributeName;
 
 				nodeData.nodeVary = nodeVary;