godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
90.02k stars 21.1k forks source link

Drag'n'dropping a node onto its parent node in the scene tree selects it in the (2D) Editor, but not the Inspector #97696

Open leogott opened 1 week ago

leogott commented 1 week ago

Tested versions

System information

Godot v4.3.stable - Pop!_OS 22.04 LTS - X11 - Vulkan (Forward+) - dedicated AMD Radeon RX 580 Series (RADV POLARIS10) - AMD Ryzen 7 7700X 8-Core Processor (16 Threads)

Issue description

When a node is selected in the scene tree, this updates the view in the 2D Editor and the Inspector to highlight the node there as well. Under very specific circumstances, this update does not happen fully. In this case: drag'n'dropping a node onto its parent to put it as the lowest of the children highlights the node to be highlighted in the 2D Editor, but the Inspector does not update accordingly.

Steps to reproduce

  1. Create a scene with a root node and two distinguishable child nodes (eg. a Container with a label and a button)
  2. Select the lower node in the scene tree
  3. drag the upper node onto its parent in the scene tree

Minimal reproduction project (MRP)

N/A

leogott commented 1 week ago

While reporting #97702 I noticed another odd thing that I'm not sure counts as its own bug and fits in with this one:

multi-selecting nodes of one kind (via ctrl or shift click) does not update the inspector, even when the focused element in the scene tree changes.