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

Node inspector location jumping when tree item is opened or closed #100695

Open
miv391 opened this issue Dec 21, 2024 · 2 comments
Open

Node inspector location jumping when tree item is opened or closed #100695

miv391 opened this issue Dec 21, 2024 · 2 comments

Comments

@miv391
Copy link
Contributor

miv391 commented Dec 21, 2024

Tested versions

Reproducible
v4.4.dev6.mono.official [1f47e4c]
v4.4.dev7.mono.official [46c8f8c]

NOT reproducible:
v4.3.stable.mono.official [77dcf97]
v4.4.dev1.mono.official [28a72fa]
v4.4.dev2.mono.official [97ef3c8]
v4.4.dev3.mono.official [f4af820]
v4.4.dev4.mono.official [36e6207]
v4.4.dev5.mono.official [9e60984]

System information

Godot v4.4.dev7.mono - Windows 10 (build 19045) - Multi-window, 1 monitor - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1060 6GB (NVIDIA; 32.0.15.6094) - Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz (4 threads)

Issue description

When in the node inspector a item (for example GPUParticles2D | Process Material | Process Material (Particle Process Material) | Display | Scale) is clicked open, the view jumps. The item under the mouse cursor is no longer the item that was clicked. Sometimes the item will be higher, sometimes lower in the view, which makes this very annoying. Click something, then try to find the item again.

I haven't been able to reproduce this with simple nodes, like Node2D, but with nodes with a lots of stuff, like GPUParticles2D, this is easily reproducible.

The jumping happens both when tree items are opened and closed. But it seems that jumping happens only once per node selection. So after the first jump, no other jumps will happen until some other node is selected and then this node is selected again.

The first and second to screenshots show what happens when Scale item is opened. The second and third screenshots show wahn happens when Scale item is closed. The red arrow shows where the mouse cursor is (sorry, too difficult to get mouse cursor in screenshots in Windows).

Image

Steps to reproduce

Setup:

  1. Add Node2D as a root node
  2. Add GPUParticles2D to the root node
  3. Add Particle Process Material to the GPUParticles2D node

Reproduction:

  1. Scroll to Process Material (Particle Process Material) | Display | Scale
  2. Click Scale tree item to open it
  3. => THE PROBLEM Scale is no longer under mouse cursor

Repeat:

  1. Click Scale tree item to close it
  2. Select scene's root node Node2D
  3. Select GPUParticles2D again
  4. goto step 4

Minimal reproduction project (MRP)

N/A

@matheusmdx
Copy link
Contributor

A important step missing is that's necessary have enough unfolded sections to vertically fill the inspector for this happen:

unknown_2024.12.22-06.39_1.mp4

Also, only happens when the inspector receive the focus, as you can see in the video above i just click outside the editor to trigger the bug and while you keep the inspector focus the bug will not happen. I'll start the bisect.

@matheusmdx
Copy link
Contributor

Bisected to #97521, @pafuent

Image

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

No branches or pull requests

3 participants