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

Remove duplicated read only checks in EditorSpinSlider #96632

Merged
merged 1 commit into from
Sep 6, 2024

Conversation

timothyqiu
Copy link
Member

There are checks for both read_only and is_read_only() at the beginning of EditorSpinSlider::_grabber_gui_input(). They were added by two separate PRs, and it is probably due to one of them rebasing after the other is merged :)

editor_spin_slider.cpp has overall mixed use of read_only and is_read_only(). The numbers are almost the same (7 vs 9).

Since is_read_only() is not virtual and is a plain getter, I also made read only checks in EditorSpinSlider's implementation to use read_only directly for consistency in this PR.

Also made read only checks in EditorSpinSlider's implementation to use
`read_only` directly for consistency.
@akien-mga akien-mga merged commit 1723fd9 into godotengine:master Sep 6, 2024
20 checks passed
@akien-mga
Copy link
Member

Thanks!

@timothyqiu timothyqiu deleted the spin-slider-read-only branch September 7, 2024 02:02
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.

3 participants