Browse Source

fix readonly VelocityNode

sunag 7 năm trước cách đây
mục cha
commit
5bb2c369a7

+ 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.constructor = THREE.VelocityNode;
 THREE.VelocityNode.prototype.nodeType = "Velocity";
 THREE.VelocityNode.prototype.nodeType = "Velocity";
 
 
+THREE.VelocityNode.prototype.isReadonly = function ( builder ) {
+
+	return false;
+
+};
+
 THREE.VelocityNode.prototype.setParams = function ( params ) {
 THREE.VelocityNode.prototype.setParams = function ( params ) {
 
 
 	switch ( this.params.type ) {
 	switch ( this.params.type ) {