提交 eabdc896 编写于 作者: M Mr.doob

Quaternion: Avoiding double call to onChangeCallback in setFromUnitVectors....

Quaternion: Avoiding double call to onChangeCallback in setFromUnitVectors. Added call to onChangeCallback in normalize(). See fffeeb63.
上级 b228ef81
......@@ -280,9 +280,12 @@ THREE.Quaternion.prototype = {
}
this.set( v1.x, v1.y, v1.z, r ).normalize();
this._x = v1.x;
this._y = v1.y;
this._z = v1.z;
this._w = r;
this.onChangeCallback();
this.normalize();
return this;
......@@ -344,6 +347,8 @@ THREE.Quaternion.prototype = {
}
this.onChangeCallback();
return this;
},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册