Pārlūkot izejas kodu

fix readonly VelocityNode

sunag 7 gadi atpakaļ
vecāks
revīzija
5bb2c369a7
1 mainītis faili ar 6 papildinājumiem un 0 dzēšanām
  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 ) {