glTF 2.0 export with "selected objects only" exports all armatures on the scene #84506

Closed
opened 2021-01-08 01:49:42 +01:00 by Aleksey · 11 comments

System Information
Operating system: Windows-10-10.0.19041-SP0 64 Bits
Graphics card: GeForce GTX 1070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 461.09

Blender Version
Broken: version: 2.91.0, branch: master, commit date: 2020-11-25 08:34, hash: blender/blender@0f45cab862
Worked: (newest version of Blender that worked as expected)

Short description of error
Actual: glTF 2.0 export with "selected objects only" brings all armatures on the scene with it.
Expected: only selected object being exported.

Exact steps for others to reproduce the error

  1. Create a new Blender scene with the default cube

  2. Add a plane

  3. Add 2 armatures

  4. Select the plane (do not select the armatures)

  5. Click File->Export as glTF 2.0 (.glb/.gltf)

  6. Set options below:
    Format-> any of glTF
    Include-> limit to selected Objects - checked
    Animation -> Animation - unchecked
    Animation-> Shape Keys - unchecked
    Animation-> Skinning - unchecked

  7. Click Export glTF 2.0 button

  8. Create another empty scene with default cube

  9. Import the exported glTF file

  10. See the plane imported as the both armatures as well

**System Information** Operating system: Windows-10-10.0.19041-SP0 64 Bits Graphics card: GeForce GTX 1070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 461.09 **Blender Version** Broken: version: 2.91.0, branch: master, commit date: 2020-11-25 08:34, hash: `blender/blender@0f45cab862` Worked: (newest version of Blender that worked as expected) **Short description of error** Actual: glTF 2.0 export with "selected objects only" brings all armatures on the scene with it. Expected: only selected object being exported. **Exact steps for others to reproduce the error** 1. Create a new Blender scene with the default cube 2. Add a plane 3. Add 2 armatures 4. Select the plane (do not select the armatures) 5. Click **File->Export** as *glTF 2.0 (.glb/.gltf)* 6. Set options below: **Format**-> any of glTF **Include**-> limit to selected Objects - *checked* **Animation** -> Animation - *unchecked* **Animation**-> Shape Keys - *unchecked* **Animation**-> Skinning - *unchecked* 7. Click Export glTF 2.0 button 8. Create another empty scene with default cube 9. Import the exported glTF file 10. See the plane imported as the both armatures as well
Author

Added subscriber: @aamm

Added subscriber: @aamm
Aleksey changed title from glTF 2.0 export with selected objects only exports all armatures on the scene to glTF 2.0 export with "selected objects only" exports all armatures on the scene 2021-01-08 01:49:59 +01:00

Added subscriber: @oweissbarth

Added subscriber: @oweissbarth

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

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

I can confirm this issue. The armature is not filtered out as it has children (the bones). The selection status of the bones is not checked thus they are included.

I can confirm this issue. The armature is not filtered out as it has children (the bones). The selection status of the bones is not checked thus they are included.
Member

Added subscribers: @JulienDuroure, @lichtwerk

Added subscribers: @JulienDuroure, @lichtwerk
Member

@JulienDuroure : mind checking?

@JulienDuroure : mind checking?
Member

This is a known issue, already reported multiple times on upstream repository.
This need quite some important changes to be fixed, so will not be fixed in short term

This is a known issue, already reported multiple times on upstream repository. This need quite some important changes to be fixed, so will not be fixed in short term

Added subscriber: @idc-4

Added subscriber: @idc-4

FWIW my naive fix for this issue is to use __filter_node criteria when gathering armature nodes. Curious what it might break downstream...

FWIW [my naive fix](https://github.com/jdcole/blender-addons/commit/55b219fbb91d0df61f3a8dd586dc426fe6e6ba59) for this issue is to use `__filter_node` criteria when gathering armature nodes. Curious what it might break downstream...
Member

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Julien Duroure self-assigned this 2021-09-15 17:53:41 +02:00
Member

Fixed by e7f2213435

Fixed by e7f2213435
Sign in to join this conversation.
No Milestone
No project
No Assignees
5 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#84506
No description provided.