Browse Source

add hashProperties

sunag 5 years ago
parent
commit
323141e65b
2 changed files with 2 additions and 0 deletions
  1. 1 0
      examples/jsm/nodes/math/MathNode.js
  2. 1 0
      examples/jsm/nodes/utils/ColorSpaceNode.js

+ 1 - 0
examples/jsm/nodes/math/MathNode.js

@@ -66,6 +66,7 @@ MathNode.FACEFORWARD = 'faceforward';
 MathNode.prototype = Object.create( TempNode.prototype );
 MathNode.prototype.constructor = MathNode;
 MathNode.prototype.nodeType = "Math";
+MathNode.prototype.hashProperties = [ "method" ];
 
 MathNode.prototype.getNumInputs = function ( /*builder*/ ) {
 

+ 1 - 0
examples/jsm/nodes/utils/ColorSpaceNode.js

@@ -239,6 +239,7 @@ ColorSpaceNode.getEncodingComponents = function ( encoding ) {
 ColorSpaceNode.prototype = Object.create( TempNode.prototype );
 ColorSpaceNode.prototype.constructor = ColorSpaceNode;
 ColorSpaceNode.prototype.nodeType = "ColorSpace";
+ColorSpaceNode.prototype.hashProperties = [ "method" ];
 
 ColorSpaceNode.prototype.generate = function ( builder, output ) {