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

GeometryInstance: Remove unimplemented LOD properties #57196

Closed

Conversation

akien-mga
Copy link
Member

@akien-mga akien-mga commented Jan 25, 2022

And remove matching unimplemented VisualServer functions.

Fixes #40784.

Breaks compat because it removes methods from the API, so any code that was using them will now raise an error. But these methods did nothing, so there should be no logic regression in user games, the only impact is that some users mistakenly calling these methods might have to remove these no-op calls from their scripts.

And remove matching unimplemented VisualServer functions.

Fixes godotengine#40784.
@akien-mga akien-mga force-pushed the 3.x-remove-unimplemented-lod branch from 4387645 to 33a2d65 Compare January 25, 2022 14:04
Comment on lines -1572 to -1575
void VisualServerScene::instance_geometry_set_draw_range(RID p_instance, float p_min, float p_max, float p_min_margin, float p_max_margin) {
}
void VisualServerScene::instance_geometry_set_as_instance_lod(RID p_instance, RID p_as_lod_of_instance) {
}
Copy link
Member Author

Choose a reason for hiding this comment

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

For anyone curious, this is the core part where the implementation is missing. Everything else which is removed in this PR is just scaffolding to expose the feature that should be implemented here (but isn't).

@Calinou
Copy link
Member

Calinou commented Jan 25, 2022

Note that there's a pull request implementing those LOD properties for 3.x: #53778

It needs more work before it can be merged though.

@akien-mga
Copy link
Member Author

Well if it can be made to work that would be best indeed, it's better to solve non-working properties by making them work than by removing them for sure :)

@akien-mga
Copy link
Member Author

Closing as superseded by #53778, seems like the plan is that we can actually implement those properties eventually. Probably for 3.6.

@akien-mga akien-mga closed this May 24, 2022
@akien-mga akien-mga deleted the 3.x-remove-unimplemented-lod branch September 8, 2022 07:55
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