mirror of
https://github.com/JannisX11/blockbench.git
synced 2024-11-21 01:13:37 +08:00
Fix reference images being selectable through model
This commit is contained in:
parent
2e575e9a96
commit
0b9c2f027a
@ -464,7 +464,11 @@ function setupInterface() {
|
|||||||
|
|
||||||
Interface.work_screen.addEventListener('dblclick', event => {
|
Interface.work_screen.addEventListener('dblclick', event => {
|
||||||
let reference = ReferenceImage.active.find(reference => reference.projectMouseCursor(event.clientX, event.clientY));
|
let reference = ReferenceImage.active.find(reference => reference.projectMouseCursor(event.clientX, event.clientY));
|
||||||
if (reference) reference.select();
|
if (!reference) return;
|
||||||
|
if (document.querySelector('.preview:hover')) {
|
||||||
|
if (Preview.selected.raycast(event)) return;
|
||||||
|
}
|
||||||
|
reference.select();
|
||||||
});
|
});
|
||||||
|
|
||||||
document.getElementById('texture_list').addEventListener('click', e => unselectTextures());
|
document.getElementById('texture_list').addEventListener('click', e => unselectTextures());
|
||||||
|
Loading…
Reference in New Issue
Block a user