Add titles to sides in gimbal controls

Fix issue with local transform space and groups
Set eraser alt tool to color picker
Bundle files
This commit is contained in:
JannisX11 2021-02-28 16:16:37 +01:00
parent 6a8b955afe
commit d04aebd0ec
5 changed files with 6 additions and 3 deletions

View File

@ -1272,6 +1272,7 @@ class GimbalControls {
side.node = document.createElement('div');
side.node.classList.add('gimbal_controls_side');
side.node.setAttribute('axis', side.axis);
side.node.title = tl(`direction.${key}`);
if (side.label) side.node.innerText = side.label;
side.node.addEventListener('click', e => {

View File

@ -805,7 +805,7 @@
}
if (is_local) return 2;
}
if (input_space === 'local' && Format.bone_rig && Group.selected) {
if (input_space === 'local' && Format.bone_rig && Group.selected && Toolbox.selected == BarItems.rotate_tool) {
// Local Space
return 2;
}
@ -827,6 +827,7 @@
}
return bone;
}
// Global Space
return 0;
}

View File

@ -855,6 +855,7 @@ BARS.defineActions(function() {
icon: 'fa-eraser',
category: 'tools',
toolbar: 'brush',
alt_tool: 'color_picker',
selectFace: true,
transformerMode: 'hidden',
cursor: 'crosshair',

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long