瀏覽代碼

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 ) {