godotengine / godot

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

Nested `CSGShape` aabb gizmo isn't visible if the node invisible upon scene open #98023

Open dustdfg opened 8 hours ago

dustdfg commented 8 hours ago

Tested versions

4.3, current master

System information

Godot v4.3.stable - Debian GNU/Linux trixie/sid trixie - Wayland - GLES3 (Compatibility) - Mesa Intel(R) HD Graphics 520 (SKL GT2) - Intel(R) Core(TM) i3-6006U CPU @ 2.00GHz (4 Threads)

Issue description

If the nested CSGShape3D has disabled visibility it doesn't show aabb gizmo when selected after opening scene

https://github.com/user-attachments/assets/8044e0d4-095f-4fe4-b4ed-965edcdcb9df

Steps to reproduce

  1. Create scene with two CSGShape's one inside another
  2. Disable visibility of nested one
  3. Close scene
  4. Open scene
  5. Select the nested shape (in the scene tree dock)

You expect to see aabb gizmo but there is no

  1. Make the shape visible
  2. Make shape invisible

Now you see aabb gizmo

Minimal reproduction project (MRP)

csg_test.zip

dustdfg commented 8 hours ago

Looks like it is closely related to https://github.com/godotengine/godot/issues/98021 The patch (see in the comments of linked issue) also "fixes" this issue