Parcourir la source

not use getDataFromNode for now

sunag il y a 4 ans
Parent
commit
ce0227106b
1 fichiers modifiés avec 2 ajouts et 16 suppressions
  1. 2 16
      examples/jsm/renderers/nodes/accessors/ModelNode.js

+ 2 - 16
examples/jsm/renderers/nodes/accessors/ModelNode.js

@@ -15,7 +15,7 @@ class ModelNode extends Node {
 
 		this.updateType = NodeUpdateType.Object;
 
-		this._inputNode = null;
+		this._inputNode = new Matrix4Node( null );
 
 	}
 
@@ -30,21 +30,7 @@ class ModelNode extends Node {
 
 	generate( builder, output ) {
 
-		const nodeData = builder.getDataFromNode( this );
-
-		let inputNode = this._inputNode;
-
-		if ( nodeData.inputNode === undefined ) {
-
-			inputNode = new Matrix4Node( null );
-
-			this._inputNode = inputNode;
-
-			nodeData.inputNode = inputNode;
-
-		}
-
-		return inputNode.build( builder, output );
+		return this._inputNode.build( builder, output );
 
 	}