Skip to content

Model loading-related changes#19

Merged
jonafanho merged 2 commits into
Minecraft-Transit-Railway:rewritefrom
AmberIsFrozen:rewrite
Apr 5, 2026
Merged

Model loading-related changes#19
jonafanho merged 2 commits into
Minecraft-Transit-Railway:rewritefrom
AmberIsFrozen:rewrite

Conversation

@AmberIsFrozen

Copy link
Copy Markdown
Member
  • Add a constructor for VertexArray which merely copies the value from the other VertexArray
    • This is required to implement copyForMaterialChanges(), a method which makes a shallow copy of the vert arrays with a new MaterialProperties, allowing textures to be changed at runtime for uploaded model.
  • Add OptimizedModel.close() to allow closing an OptimizedModel and freeing up resources, which was previously not possible and requires mixin to iterate through VertexArray and closing it.
  • Make the constructor public for OptimizedModel to take in an existing VertexArray list.

@jonafanho
jonafanho merged commit ecba9bd into Minecraft-Transit-Railway:rewrite Apr 5, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants