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 collision_friction to friction in TileMap #18191

Closed
wants to merge 1 commit into from
Closed

Rename collision_friction to friction in TileMap #18191

wants to merge 1 commit into from

Conversation

Chais
Copy link

@Chais Chais commented Apr 14, 2018

Renames the collision_friction property to friction in the TileMap class
to conform with the naming in other classes.
The documentation is updated accordingly.
Fixes #18190

@vnen
Copy link
Member

vnen commented Apr 14, 2018

This can't be changed like this, it'll break compatibility with existing projects.

@Chais
Copy link
Author

Chais commented Apr 14, 2018

Fair point. Will adjust accordingly.
Edit:
Will it suffice to leave the original ClassDB::bind_method call in? Or are the actual methods required as well?

Renames the collision_friction property to friction in the TileMap class
to conform with the naming in other classes.
The documentation is updated accordingly.
The previous property accessor, getter and setter have been retained for
compatibility.
Fixes #18190
@akien-mga
Copy link
Member

Thanks for the proposal, that's a good change, but indeed compatibility is an issue. The way you added it by keeping the deprecated methods bound is good, but it makes it hard to keep track of what is deprecated. It would require #4397 to be implemented to be done properly, so for now I've added it to the list in #16863.

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.

4 participants