GLTF 2.0 export includes hidden armatures in disabled collections #87093

Closed
opened 2021-03-31 18:15:24 +02:00 by Casey · 7 comments

System Information
Operating system: Windows-10-10.0.19041-SP0 64 Bits
Graphics card: GeForce RTX 2080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 461.92

Blender Version
Broken: version: 2.92.0, branch: master, commit date: 2021-02-24 16:25, hash: blender/blender@02948a2cab
Worked: (newest version of Blender that worked as expected)

Addon Information
Name: glTF 2.0 format (1, 6, 8)
Author: Julien Duroure, Scurest, Norbert Nopper, Urs Hanselmann, Moritz Becher, Benjamin Schmithüsen, Jim Eckerlein, and many external contributors

Short description of error
Exporting GLTF of a scene with "only selected" active will still export armatures in the scene even if they're unselected and in disabled collections. We noticed this after importing our scenes into Babylon .js and almost a hundred rigs from other (disabled) collections were coming with.

Exact steps for others to reproduce the error

  • Place armatures in a disabled collection.
  • Make some geometry in the main scene collection.
  • Select the geometry in the main scene collection,
  • go to export to GLTF 2.0 and tick "only selected".
  • Export and re-import again.
    The armatures in the disabled collection will come with.
**System Information** Operating system: Windows-10-10.0.19041-SP0 64 Bits Graphics card: GeForce RTX 2080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 461.92 **Blender Version** Broken: version: 2.92.0, branch: master, commit date: 2021-02-24 16:25, hash: `blender/blender@02948a2cab` Worked: (newest version of Blender that worked as expected) **Addon Information** Name: glTF 2.0 format (1, 6, 8) Author: Julien Duroure, Scurest, Norbert Nopper, Urs Hanselmann, Moritz Becher, Benjamin Schmithüsen, Jim Eckerlein, and many external contributors **Short description of error** Exporting GLTF of a scene with "only selected" active will still export armatures in the scene even if they're unselected and in disabled collections. We noticed this after importing our scenes into Babylon .js and almost a hundred rigs from other (disabled) collections were coming with. **Exact steps for others to reproduce the error** - Place armatures in a disabled collection. - Make some geometry in the main scene collection. - Select the geometry in the main scene collection, - go to export to GLTF 2.0 and tick "only selected". - Export and re-import again. The armatures in the disabled collection will come with.
Author

Added subscriber: @Casey-3

Added subscriber: @Casey-3

Added subscriber: @mano-wii

Added subscriber: @mano-wii

The glTF 2.0 addon has its own tracker for issues:
https://github.com/KhronosGroup/glTF-Blender-IO/issues/

I suggest checking if this issue has already been reported there.

The glTF 2.0 addon has its own tracker for issues: https://github.com/KhronosGroup/glTF-Blender-IO/issues/ I suggest checking if this issue has already been reported there.
Author

I took a look, it looks like there's still open tickets about it so I guess that's it. It's just not fixed yet

I took a look, it looks like there's still open tickets about it so I guess that's it. It's just not fixed yet
Member

Added subscriber: @JulienDuroure

Added subscriber: @JulienDuroure
Member

Changed status from 'Needs Triage' to: 'Resolved'

Changed status from 'Needs Triage' to: 'Resolved'
Julien Duroure self-assigned this 2021-09-15 17:54:12 +02:00
Member

Fixed by e7f2213435

Fixed by e7f2213435
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#87093
No description provided.