Explorar o código

update vary snippet

sunag %!s(int64=4) %!d(string=hai) anos
pai
achega
4cff87ddfd
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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;