Autodesk / arnold-usd

Arnold components for USD
https://www.arnoldrenderer.com/
Other
236 stars 56 forks source link

Ensure materials are written under a Scope primitive #1876

Closed sebastienblor closed 2 months ago

sebastienblor commented 2 months ago

Changes proposed in this pull request As we're doing for the "/Render" scope, we now ensure that the materials parent scope (usually "/mtl") is actually a Scope primitive.

Even though it wasn't strictly needed, I updated the existing tests to have this scope so that everything is consistent.

I added test_1873 to check for the mtl primitive type.

Issues fixed in this pull request Fixes #1873