sunag 5 年之前
父节点
当前提交
bac8995fdb
共有 2 个文件被更改,包括 9 次插入9 次删除
  1. 8 8
      examples/jsm/nodes/core/Node.js
  2. 1 1
      examples/jsm/nodes/materials/NodeMaterial.js

+ 8 - 8
examples/jsm/nodes/core/Node.js

@@ -101,25 +101,25 @@ Node.prototype = {
 	},
 
 	getHash: function() {
-		
+
 		var hash = '{';
-		
+
 		for(var prop in this) {
 
 			var obj = this[ prop ];
-			
+
 			if (obj instanceof Node) {
-				
+
 				hash += '"' + prop + '":' + obj.getHash() + ',';
-				
+
 			}
 
 		}
-		
+
 		hash += '"id":"' + this.uuid + '"}';
-		
+
 		return hash;		
-		
+
 	},
 
 	appendDepsNode: function ( builder, data, output ) {

+ 1 - 1
examples/jsm/nodes/materials/NodeMaterial.js

@@ -99,7 +99,7 @@ NodeMaterial.prototype.getHash = function () {
 	hash += '}'
 
 	return hash;
-	
+
 };
 
 NodeMaterial.prototype.updateFrame = function ( frame ) {