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

chore: remove usage of Tesselator for BlockSelectionRenderer #4964

Merged

Conversation

pollend
Copy link
Member

@pollend pollend commented Nov 24, 2021

this replaces the usage of the Tesslator with just the direct MeshData. There is some similar code in IconMeshFactory, and BoundingBoxRenderer. I've ommited things with regards to constructing the mesh and there are some slight detail differences where a unified API ends up becoming more of a burden. Its not much more code from what I can tell and its clear enough that the duplication does not seem too bad to me.

@github-actions github-actions bot added the Type: Chore Request for or implementation of maintenance changes label Nov 24, 2021
Copy link
Member

@skaldarnar skaldarnar left a comment

Choose a reason for hiding this comment

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

Tested out fine, looks the same as before.

I'm not a huge fan of code duplication, but if that helps you maintaining this code then let's go for it.

Maybe it is even a good thing that they don't use the same code anymore to encourage visual changes/differences between regular block selection, bounding boxes, and other things.

@pollend pollend merged commit 7ef8973 into develop Dec 4, 2021
@pollend pollend deleted the feat/remove-usage-Tesselator-BlockSelection-Renderer branch December 4, 2021 20:14
@pollend pollend added this to the v5.2.0 milestone Dec 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Chore Request for or implementation of maintenance changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants