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 regression with right click on main selection #76865

Merged
merged 1 commit into from
May 8, 2023

Conversation

jmb462
Copy link
Contributor

@jmb462 jmb462 commented May 8, 2023

Fix #76864

Really sorry about that but #76472 introduce a regression when right clicking on the main selection or first selection of multiselection : it will deselect it and show the "no selection" version of context menu.

Cause : Stupid mistake when checking if a selection has been clicked. In script editor, caret_clicked is not a bool but an int. Need to check if this variable is lesser than 0 instead of false...

@jmb462 jmb462 requested a review from a team as a code owner May 8, 2023 20:06
@akien-mga akien-mga added this to the 4.1 milestone May 8, 2023
@akien-mga akien-mga merged commit 6980b2b into godotengine:master May 8, 2023
@akien-mga
Copy link
Member

Thanks!

@akien-mga
Copy link
Member

Cherry-picked for 4.0.3.

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.

Regression with right click on selection in script editor
2 participants