Browse Source

fix readonly VelocityNode

sunag 7 years ago
parent
commit
5bb2c369a7
1 changed files with 6 additions and 0 deletions
  1. 6 0
      examples/js/nodes/utils/VelocityNode.js

+ 6 - 0
examples/js/nodes/utils/VelocityNode.js

@@ -19,6 +19,12 @@ THREE.VelocityNode.prototype = Object.create( THREE.Vector3Node.prototype );
 THREE.VelocityNode.prototype.constructor = THREE.VelocityNode;
 THREE.VelocityNode.prototype.nodeType = "Velocity";
 
+THREE.VelocityNode.prototype.isReadonly = function ( builder ) {
+
+	return false;
+
+};
+
 THREE.VelocityNode.prototype.setParams = function ( params ) {
 
 	switch ( this.params.type ) {