KhronosGroup / glTF-Blender-IO

Blender glTF 2.0 importer and exporter
https://docs.blender.org/manual/en/latest/addons/import_export/scene_gltf2.html
Apache License 2.0
1.5k stars 320 forks source link

Issue on filtering visiblity inside collection #1647

Open pafurijaz opened 2 years ago

pafurijaz commented 2 years ago

Describe the bug Hi, I accidentally noticed another small problem, with parented objects in different collections.

Specifically, when I have an object with a parent link, in two different collections, but I insert only the one that interests me in a scene where I compose my assembly of parts, the source object with parent link is also included in the export even if this is not visible in my main scene.

I hope I was clear, however I am attaching both the images and the file created for this specific issue.

Thank you and greetings

Expected behavior I wolud like to export only the inserted and visible collections and objects or linked one.

Screenshots Here the source linked propeller blade is visible on bottom but this is in non linked and not visible collection on my main scene. Parent-issue

My main scene and how it is in blender view port. Parent-issue-01

And this is my scene for source parts design. Parent-issue-02

.blend file/ .gltf ZIp with blend and glb Parent-issue.zip

Version

Additional context

julienduroure commented 2 years ago

Confirmed. Problem come from filtering visibility inside collection

pafurijaz commented 2 years ago

This should be fixed because it is a problem that also occurs with objects linked to others that I use to do Boolean operations and they must not be visible in the final assembly.

pafurijaz commented 2 years ago

Here is an example that shows the error well

In the Blender file there are 2 scenes one in which I have all the objects and another final where only the final parts are visible, but in the export are also included the objects that are not visible in the final scene, which I connected to the rings slot to make holes.

This becomes complicated to solve if there are many objects of this type, where the connection is necessary in order to be able to position the rings well on the surface.

Blender final scene image

Exported opened in CAD Assistant image

This occur only when I have multiple scene to organize various assembly parts

Blender source file Linked-issue.blend.zip . Greetings