Skip to content

Pre-click scene tab selected, but last scene tab shown #120957

Description

@duianto

Tested versions

Reproducible in:
v4.7.1.rc1.official [17e2686]
v4.7.stable.official [5b4e0cb]

Not reproducible in:
v4.6.3.stable.official [7d41c59c4]

System information

Godot v4.7.1.rc1 - Windows 11 (build 26100) - Multi-window, 1 monitor - OpenGL 3 (Compatibility) - GeForce GTX 550 Ti - Intel(R) Core(TM) i3-2100 CPU @ 3.10GHz (4 threads) - 11.95 GiB memory - WASAPI (48000 Hz, Stereo/mono)

Issue description

The current scene tab remains selected, but the scene panel and the viewport show the last scene tab's contents, when trying to open a .gltf node's scene in the editor.

Image Image Image

Steps to reproduce

A dialog opens:

Please Confirm...
Scene 'box.gltf' was automatically imported, so it can't be modified.
To make changes to it, a new inherited scene can be created.

Issue:
The scene panel and the viewport show the last scene 'two', even though scene 'one' is selected in the tab bar.

godot_pre_click_scene_tab_selected_but_last_scene_tab_shown.mp4

Expected:
Don't change scenes. This is how it works in v4.6.3.stable.official [7d41c59c4]

In 4.7, it doesn't change scenes if the last scene tab is a new empty unsaved scene, but it seems to have been stopped by an error, because the Output panel shows:

 ERROR: editor/editor_node.cpp:4985 - Parameter "new_scene" is null.

godot_pre_click_scene_tab_selected_and_shown_but_there.s_an_error.mp4

Minimal reproduction project (MRP)

pre-click-scene-tab-selected,-but-last-scene-tab-shown.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions