Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The tile editor becomes visible when editing code #104305

Open
JekSun97 opened this issue Mar 18, 2025 · 4 comments
Open

The tile editor becomes visible when editing code #104305

JekSun97 opened this issue Mar 18, 2025 · 4 comments

Comments

@JekSun97
Copy link
Contributor

Tested versions

4.4.1 RC1

System information

Godot v4.4.1.rc1 - Windows 10 (build 19045) - Multi-window, 1 monitor - OpenGL 3 (Compatibility) - Radeon RX 560 Series (Advanced Micro Devices, Inc.; 31.0.21912.14) - Intel(R) Core(TM) i5-4570 CPU @ 3.20GHz (4 threads)

Issue description

I noticed that if we edit code and we have hidden tile editors, they constantly become visible, i.e. they expand.

0318.2.mp4

I also see this error all the time when this problem happens:

Image

Steps to reproduce

  1. Create a TileMapLayer
  2. Attach a script to it
  3. Make sure the TileMapLayer is selected, has a TileSet, and has tile editors at the bottom
  4. Indent the code or select the randomize() function from the tooltip
  5. This will open the tile editor, although we don't need it

Minimal reproduction project (MRP)

I usually attach the MRP, but it's very easy to do following the instructions above.

@akien-mga
Copy link
Member

CC @KoBeWi

@KoBeWi
Copy link
Member

KoBeWi commented Mar 18, 2025

Stops happening when you fold tile_set.

@JekSun97
Copy link
Contributor Author

JekSun97 commented Mar 18, 2025

Stops happening when you fold tile_set.

Yes, that's why I wrote in the playback steps that TileSet should also be present.
Judging by the error, this is happening because of TileSets.

@KoBeWi
Copy link
Member

KoBeWi commented Mar 18, 2025

This issue happens with any Resource that has bottom editor (e.g. Theme). Modifying the script will refresh the inspector, which will re-open all opened Resources, potentially causing the editors to re-appear.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants