appleseedhq / appleseed-max

appleseed plugin for Autodesk® 3ds Max®
https://appleseedhq.net/
MIT License
33 stars 16 forks source link

Collect materials inside root assembly #279

Closed usakhelo closed 5 years ago

usakhelo commented 5 years ago

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!

dictoon commented 5 years ago

Thanks!