- [FIX] Encara que es tinga un item seleccionat, es pot treballar amb els items en pantalla

This commit is contained in:
2026-03-11 12:55:54 +01:00
parent c1c022abb8
commit dd72f182ba
2 changed files with 4 additions and 4 deletions

View File

@@ -573,7 +573,7 @@ sprites = {
editor.item_hovered = nil
local mx,my = mouse.pos()
if (app.update == editor.update) and (editor.item_selected or editor.layer~=LAYER_ITEMS) then ignore_selected = true end
if (app.update == editor.update) and (editor.layer~=LAYER_ITEMS) then ignore_selected = true end
for i,v in ipairs(sprites.list) do
if not ignore_selected and app.update == editor.update and mx>=v.pos.x and mx<=v.pos.x+v.size.w and my>=v.pos.y and my<=v.pos.y+v.size.h then
editor.item_hovered = i