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 get_cursor_shape() in tile atlas editor #79837

Merged
merged 1 commit into from
Jul 24, 2023

Conversation

KoBeWi
Copy link
Member

@KoBeWi KoBeWi commented Jul 23, 2023

TileAtlasSourceEditor has get_cursor_shape() implemented, but it was broken. The part where you edit the tiles is actually a Control tile_atlas_control. Unfortunately the only way to implement get_cursor_shape() is to override a virtual method, so I had to add a new, very minimal class to fix it.

godot.windows.editor.dev.x86_64_lWrJDfIBrE.mp4

Copy link
Member

@groud groud left a comment

Choose a reason for hiding this comment

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

hmm... of course I annoys me a bit that we have to create another class just for that, but I can't find a better solution. :/

So let's go for that, LGTM!

@YuriSizov YuriSizov merged commit 0cbdad4 into godotengine:master Jul 24, 2023
@KoBeWi KoBeWi deleted the CursorShaper branch July 24, 2023 17:42
@YuriSizov
Copy link
Contributor

Thanks!

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