This change fixes the issue with missing materials when material is assigned to objects in root assembly and to objects in their own assembly (created with appleseed modifier with Optimized for Instancing checked).
Before materials were collected each in the assembly of the object, but in cases of shared material it sometimes gets listed in the nested assembly which makes it invisible to the objects in parent assembly.
This change puts all the materials to the root assembly.
Hi,
This change fixes the issue with missing materials when material is assigned to objects in root assembly and to objects in their own assembly (created with appleseed modifier with Optimized for Instancing checked). Before materials were collected each in the assembly of the object, but in cases of shared material it sometimes gets listed in the nested assembly which makes it invisible to the objects in parent assembly. This change puts all the materials to the root assembly.
Thanks for review!