LumaPictures / maya-to-hydra

This repo is no longer updated. Please see https://github.com/Autodesk/maya-usd

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Attribute for selecting renderer (defaultRenderGlobals.mtohRenderer) should be string, not enum

pmolodo opened this issue · comments

If it's an enum, then it's value when it's saved out to file is unreliable - the list of available renderers may be different when it's opened, and the value is saved as an int - so "1" when it's saved may be different than when it's loaded.

Instead, it should be a string, which is validated against the current set of renderers, and use the default renderer if it's invalid (after printing a warning)

Closing this in favor of #44 .