mirror of
https://github.com/JannisX11/blockbench.git
synced 2025-04-06 17:31:09 +08:00
Fix moving mesh selection in group space
This commit is contained in:
parent
45202570be
commit
615b07b2fe
@ -578,6 +578,12 @@ function moveElementsInSpace(difference, axis) {
|
||||
m.applyEuler(selection_rotation);
|
||||
difference_vec.V3_set(m.x, m.y, m.z);
|
||||
|
||||
} else if (space instanceof Group) {
|
||||
let m = vector.set(0, 0, 0);
|
||||
m[getAxisLetter(axis)] = difference;
|
||||
m.applyQuaternion(new THREE.Quaternion().copy(el.mesh.quaternion).invert());
|
||||
difference_vec.V3_set(m.x, m.y, m.z);
|
||||
|
||||
} else {
|
||||
let m = vector.set(0, 0, 0);
|
||||
m[getAxisLetter(axis)] = difference;
|
||||
|
Loading…
x
Reference in New Issue
Block a user