Avoid unnecessary mesh duplication for the objects with modifiers#2590
Open
rpaciorek wants to merge 2 commits into
Open
Avoid unnecessary mesh duplication for the objects with modifiers#2590rpaciorek wants to merge 2 commits into
rpaciorek wants to merge 2 commits into
Conversation
Collaborator
|
Hello, |
add detecting identical meshes created as a result of applying modifiers to avoid duplicated meshes in exported gltf file fix KhronosGroup#1952 and KhronosGroup#2472
rpaciorek
force-pushed
the
mesh_instances
branch
from
October 19, 2025 12:02
3984291 to
56341c3
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This detect and reuse identical meshes after apply modifiers.
It keep copy of meshes with modifiers applied in
mesh_instancesand compare each newly created mesh with modifiers applied with all previous generated unique meshes created from the same original blender mesh.Due to this it can be expensive (memory and CPU) - maybe it should be an option?
It fixed #1952 and #2472 (except for meshes using armatures when "Skinning" export is enabled, which are always duplicated for other reasons).