make IK always move in global space

This commit is contained in:
JannisX11 2020-09-28 22:46:41 +02:00
parent 912491b7ca
commit c95f51e647

View File

@ -911,6 +911,8 @@
Group.selected.mesh.getWorldPosition(this.position);
if (Toolbox.selected.id == 'resize_tool') {
Transformer.rotation_ref = Group.selected.mesh;
} else if (Toolbox.selected.id == 'move_tool' && Group.selected.ik_enabled && Group.selected.ik_chain_length) {
delete Transformer.rotation_ref;
} else {
Transformer.rotation_ref = Group.selected.mesh.parent;
}
@ -1360,8 +1362,6 @@
var keyframe = scope.keyframes[i];
if (keyframe) {
var bone = copy_bone.original;
let euler = new THREE.Euler()
let q = new THREE.Quaternion()