GDevelop icon indicating copy to clipboard operation
GDevelop copied to clipboard

Highlighting instance rectangle of deleted object does not disappear

Open f0nar opened this issue 2 years ago • 3 comments

Is there an existing issue for this?

Describe the bug

If instance of object that you are going to delete is under the mouse cursor after deleting dialogs the highlighting instance rectangle is present until you hover smth else

record

Steps to reproduce

  1. Create object (was tested on tilemap, text, spine)
  2. Create its instance on scene
  3. Scale and place instance to make mouse hover it after deleting dialogs
  4. Right click on appropriate object in object list
  5. Select delete
  6. Yes to everything

GDevelop platform

Desktop

GDevelop version

5.3.183

Platform info

OS macOS Venture 13.5.2

Additional context

No response

f0nar avatar Dec 12 '23 16:12 f0nar

Thanks for the issue and for the video 👍

I can indeed reproduce the problem. Have you seen any crashes following this situation? It feels to me as if it's only a temporary rendering issue but I may be wrong.

ClementPasteau avatar Dec 13 '23 11:12 ClementPasteau

HighlightedInstance caches instance and continue to call render with it. Nothing is crashed with objects I tested it on due to simple implementation of getWidth/Height/Depth but if one of these methods try to work with _associatedObjectConfiguration then it will throw error (It was my case with spine but I fixed that).

f0nar avatar Dec 13 '23 11:12 f0nar

Definitely deserves taking a look then, thanks for the details

ClementPasteau avatar Dec 14 '23 13:12 ClementPasteau