-
Notifications
You must be signed in to change notification settings - Fork 202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MAYA-123507 - PluginLight needs to use the Light Icon instead of falling back to Xform icon #2406
Conversation
…ing back to the Xform Icon * Added icon for PluginLight. * Fix case where AL plugin is not built. * Removed unneeded test property.
test/lib/ufe/testUIIcons.py
Outdated
@@ -114,7 +112,7 @@ def testUIIcons(self): | |||
('NurbsPatch', 'out_USD_NurbsPatch.png'), | |||
('OpenVDBAsset', 'out_USD_UsdGeomXformable.png'), | |||
('PackedJointAnimation', 'out_USD_SkelAnimation.png'), | |||
('PluginLight', 'out_USD_UsdGeomXformable.png' if usdVer >= (0, 21, 11) else 'out_USD_UsdLuxLight.png'), | |||
('PluginLight', 'out_USD_PluginLight.png' if usdVer >= (0, 21, 11) else 'out_USD_UsdLuxLight.png'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PluginLight now has an icon.
# Special case for node types which are in an AL schema. | ||
# They aren't available when compiling without the AL plugin. | ||
if Usd.SchemaRegistry.IsConcrete(Tf.Type.FindByName('AL_usd_FrameRange')): | ||
primTypes.extend([ | ||
('ALExamplePolyCubeNode', 'out_USD_UsdTyped.png'), | ||
('ALFrameRange', 'out_USD_UsdTyped.png') | ||
]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you build locally without the AL plugin you won't have the schema that defines these two node types.
# Prim Type # Icon file name | ||
('ALExamplePolyCubeNode', 'out_USD_UsdTyped.png'), | ||
('ALFrameRange', 'out_USD_UsdTyped.png'), | ||
# Prim Type # Icon file name | ||
('ALMayaReference', 'out_USD_MayaReference.png'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about the ALMayaReference? Should it be moved too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The schema for that one is in lib
, so its always there.
…ing back to the Xform Icon * Use PluginLight icon for any USD version.
@@ -182,6 +182,7 @@ Ufe::UIInfoHandler::Icon UsdUIInfoHandler::treeViewIcon(const Ufe::SceneItem::Pt | |||
{ "ALMayaReference", "out_USD_MayaReference.png" }, // Same as mayaRef | |||
{ "Mesh", "out_USD_Mesh.png" }, | |||
{ "NurbsPatch", "out_USD_NurbsPatch.png" }, | |||
{ "PluginLight", "out_USD_PluginLight.png" }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops realized (after running preflight) that I forgot to add the icon here. This makes it work no matter what the USD version.
MAYA-123507 - PluginLight needs to use the Light Icon instead of falling back to the Xform Icon