ソースを参照

fix readonly VelocityNode

sunag 7 年 前
コミット
5bb2c369a7
1 ファイル変更6 行追加0 行削除
  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 ) {