Explorar el Código

update vary snippet

sunag hace 4 años
padre
commit
4cff87ddfd
Se han modificado 1 ficheros con 2 adiciones y 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;