-
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
[mtoh] Fix stage-repopulation. #650
Conversation
Similar problem we were solving in VP2RenderDelegate - see condition https://github.com/Autodesk/maya-usd/blob/dev/lib/mayaUsd/render/vp2RenderDelegate/proxyRenderDelegate.cpp#L421 and implementation details for ProxyRenderDelegate::ProxyShapeData::IsUsdStageUpToDate() and ProxyRenderDelegate::ProxyShapeData::IsExcludePrimsUpToDate() I will ask @williamkrick to review this change and point out opportunities for aligning the two render paths on the same mechanism to detect when stage on proxy shape changed. |
My approach in Vp2RenderDelegate is to hold all the data we use from the ProxyShape on a class (ProxyShapeData) and do all the version tracking there. ProxyShapeData could be refactored into ProxyShapeBase or a similar common area and re-used by mtoh. ProxyShapeData can directly compare cached values to the current ProxyShapeBase data to detect changes in simple types, or compare versionIDs to detect changes in complex types. Right now y'all have a callback registered |
@@ -61,18 +61,11 @@ void HdMayaProxyAdapter::Populate() { | |||
TF_DEBUG(HDMAYA_AL_POPULATE) | |||
.Msg("HdMayaProxyDelegate::Populating %s\n", _proxy->name().asChar()); | |||
|
|||
auto stage = _proxy->getUsdStage(); |
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.
It's true that the base proxy shape currently always has a valid stage. This doesn't have to be true a) in future, b) for plugin proxy shapes (example AL proxy shape). Please bring back this validation.
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.
Changing the status of the review to "request changes"
efdd144
to
fb88985
Compare
When rendering via mtoh, changes to UsdProxy.filepath aren't working.
(If not always, at least when VP_RENDER_DELEGATE=0)