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

rename grab state variable to avoid conflicts with tipical class_name 'State' #679

Merged
merged 1 commit into from
Sep 22, 2024

Conversation

surreal6
Copy link
Contributor

I suggest to rename this enum variable to avoid conflicts with anyone willing to use 'State' string as a class_name.

This enum is used internally in this grab_driver and has no real impact to change it. But anyone trying to follow classic States Machine with nodes and defined classes, will find a conflict.

Copy link
Collaborator

@Malcolmnixon Malcolmnixon left a comment

Choose a reason for hiding this comment

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

Looks good and works well.

@Malcolmnixon Malcolmnixon merged commit 7c6d455 into GodotVR:master Sep 22, 2024
2 checks passed
@Malcolmnixon Malcolmnixon added this to the 4.4.0 milestone Sep 26, 2024
@Malcolmnixon Malcolmnixon added the cleanup Cleaning up code or aligning Godot 3 and 4 versions label Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup Cleaning up code or aligning Godot 3 and 4 versions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants