Skip to content

Avoid unnecessary mesh duplication for the objects with modifiers#2590

Open
rpaciorek wants to merge 2 commits into
KhronosGroup:mainfrom
rpaciorek:mesh_instances
Open

Avoid unnecessary mesh duplication for the objects with modifiers#2590
rpaciorek wants to merge 2 commits into
KhronosGroup:mainfrom
rpaciorek:mesh_instances

Conversation

@rpaciorek

Copy link
Copy Markdown
Contributor

This detect and reuse identical meshes after apply modifiers.

It keep copy of meshes with modifiers applied in mesh_instances and 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).

@CLAassistant

CLAassistant commented Aug 24, 2025

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@julienduroure

Copy link
Copy Markdown
Collaborator

Hello,
I didn't check it yet, but I agree that we can't enable it by default, as it should be very expensive

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
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.

Collection instances duplicate meshes when the objects has modifiers

3 participants