Fix #2291 Move tool gizmo misaligned on empty group

This commit is contained in:
JannisX11 2024-04-24 23:28:58 +02:00
parent 60c1f4ecc0
commit 5fbbcb243b

View File

@ -823,7 +823,7 @@
this.getTransformSpace = function() { this.getTransformSpace = function() {
var rotation_tool = Toolbox.selected.id === 'rotate_tool' || Toolbox.selected.id === 'pivot_tool' var rotation_tool = Toolbox.selected.id === 'rotate_tool' || Toolbox.selected.id === 'pivot_tool'
if (!selected.length && (!Group.selected || !rotation_tool || !Format.bone_rig)) return; if (!selected.length && (!Group.selected || !Format.bone_rig)) return;
let input_space; let input_space;
switch (Toolbox.selected.id) { switch (Toolbox.selected.id) {