mirror of
https://github.com/JannisX11/blockbench.git
synced 2024-11-27 04:21:46 +08:00
Fix upable to paint in 2D editor
Fix hover issue with menu item side menu
This commit is contained in:
parent
a275be5e04
commit
64caffaa28
@ -186,9 +186,14 @@ class Menu {
|
||||
node.addClass('hybrid_parent');
|
||||
let more_button = Interface.createElement('div', {class: 'menu_more_button'}, Blockbench.getIconNode('more_horiz'));
|
||||
node.append(more_button);
|
||||
$(more_button).mouseenter(e => {
|
||||
more_button.addEventListener('mouseenter', e => {
|
||||
scope.hover(node.get(0), e, true);
|
||||
})
|
||||
more_button.addEventListener('mouseleave', e => {
|
||||
if (node.is(':hover') && !childlist.is(':hover')) {
|
||||
scope.hover(node, e);
|
||||
}
|
||||
})
|
||||
}
|
||||
} else {
|
||||
node.addClass('parent');
|
||||
|
@ -460,7 +460,9 @@ const Painter = {
|
||||
let softness = BarItems.slider_brush_softness.get()/100;
|
||||
let b_opacity = BarItems.slider_brush_opacity.get()/255;
|
||||
let tool = Toolbox.selected;
|
||||
let matrix_id = Painter.current.element.uuid + Painter.current.face;
|
||||
let matrix_id = Painter.current.element
|
||||
? (Painter.current.element.uuid + Painter.current.face)
|
||||
: Painter.current.face;
|
||||
|
||||
ctx.clip()
|
||||
if (Painter.current.element instanceof Mesh) {
|
||||
|
Loading…
Reference in New Issue
Block a user