Skip to content

Collection instances duplicate meshes when the objects has modifiers #1952

Description

@eliasdaler

When the object has a modifier, instancing it via group collection still produces multiple meshes even if "Apply Modifiers" checkbox is checked.

Repro:

  1. Ctrl+2 - Apply sub div modifier to a default cube
  2. Ctrl+G -> Create "CubeCollection"
  3. Shift+A -> Collection instance -> CubeCollection
  4. Export to gltf with "Apply Modifiers" on.

This is what you get:

	"nodes":[
		{
			"mesh":0,
			"name":"Cube"
		},
		{
			"mesh":1,
			"name":"Cube"
		},
		{
			"children":[
				1
			],
			"name":"CubeCollection",
			"translation":[
				-2.7222368717193604,
				0,
				-4.626335620880127
			]
		}
	],

The created cube doesn't use "0" mesh, it has its own mesh. Making more collection instances makes even more meshes.

Expected behavior
The mesh shouldn't be duplicated in gltf file and should be reused instead.

.blend file/ .gltf
Here

Version

  • OS: Debian GNU/Linux 12 (bookworm)
  • Blender Version 3.6.0 LTS

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions