-
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
LOOKDEVX-2128 - Allow specializing the topo neutral graph generator #3503
LOOKDEVX-2128 - Allow specializing the topo neutral graph generator #3503
Conversation
JGamache-autodesk
commented
Dec 7, 2023
- Also exports the color management preferences cache.
- Also exports the color management preferences cache.
@@ -47,7 +47,7 @@ class MAYAUSD_CORE_PUBLIC TopoNeutralGraph | |||
// Get the watch list gathered while traversing | |||
const WatchList& getWatchList() const; | |||
|
|||
private: | |||
protected: |
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.
Allow downstream clients to specialize that class.
namespace MAYAUSD_NS_DEF { | ||
|
||
// We will cache the color management preferences since they are used in many loops. | ||
ColorManagementPreferences::~ColorManagementPreferences() { RemoveSinks(); } |
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.
Extracted as-is from material.cpp to be used by downstream clients.
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.
LGTM, one minor comment.
MString _renderingSpaceName; | ||
MString _sRGBName; | ||
std::vector<MCallbackId> _mayaColorManagementCallbackIds; | ||
MCallbackId _mayaExitingCB { 0 }; |
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.
Can add this callback to the color management callback vector.
@seando-adsk Ready for merge. |
86d68d1
…info" This reverts commit 86d68d1.
@seando-adsk Still ready for merge. Last commit fully reverts previous one, which will be submitted separately. So we are still in a fully reviewed state. |
Since the OgsFragment code is now shared with other clients, it must be careful around global state.
@@ -3027,8 +2910,15 @@ MHWRender::MShaderInstance* HdVP2Material::CompiledNetwork::_CreateMaterialXShad | |||
return shaderInstance; | |||
} | |||
|
|||
// Enable changing texcoord to geompropvalue | |||
const auto prevUVSetName = mx::OgsXmlGenerator::getPrimaryUVSetName(); | |||
mx::OgsXmlGenerator::setPrimaryUVSetName(_GetMaterialXData()._mainUvSetName); |
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.
Fixes issue see in demo this morning.