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

Fix autoswitch 2D/3D view when clicking on node with floating script editor #80307

Closed
wants to merge 1 commit into from

Conversation

jmb462
Copy link
Contributor

@jmb462 jmb462 commented Aug 5, 2023

Fix #80015

Issue fixed :

When clicking on a node in the scene tree, editor autoswitch to 2D/3D view when script editor is not visible.
This behaviour is good until we use floating script editor. Because in this case, we can see both the script and the 2D/3D view and autoswitch is expected.

Fix proposal :

Check if editor script is floating and allow autoswitch to 2D/3D view when clicking in the scene tree.
Behaviour with non floating script is unchanged.

Before :

switch_tab_issue

After the fix :

switch_tab

@akien-mga akien-mga modified the milestones: 4.x, 4.2 Aug 9, 2023
@akien-mga akien-mga added the cherrypick:4.1 Considered for cherry-picking into a future 4.1.x release label Aug 9, 2023
@@ -274,6 +274,7 @@ class ScriptEditor : public PanelContainer {
Button *help_search = nullptr;
Button *site_search = nullptr;
Button *make_floating = nullptr;
bool floating_activated;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Set this to false here instead of in the constructor.

@akien-mga
Copy link
Member

Superseded by #80647.

@akien-mga akien-mga closed this Aug 17, 2023
@akien-mga akien-mga added archived and removed cherrypick:4.1 Considered for cherry-picking into a future 4.1.x release labels Aug 17, 2023
@AThousandShips AThousandShips removed this from the 4.2 milestone Aug 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

If the script editor is floating, auto switching to 2D view when clicking Control nodes doesn't work
3 participants