-
Notifications
You must be signed in to change notification settings - Fork 203
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
Removing code blocks for USD 19.07 #734
Conversation
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.
@kxl-adsk my search shows other places where these checks can be removed. Please see the list below:
shadingModeExporterContext.cpp
mayaToHydra\renderGlobals.cpp
mayaToHydra\renderGlobals.h
mayaToHydra\renderOverride.cpp
mayaToHydra\renderOverride.h
mayaToHydra\utils.cpp
pxrUsdMayaGL\sceneDelegate.cpp
pxrUsdMayaGL\usdProxyShapeAdapter.cpp
vp2RenderDelegate\material.cpp
adapters\materialAdapter.h
adapters\materialNetworkConverter.cpp
adapters\materialNetworkConverter.h
delegates\delegate.h
delegates\delegateDebugCodes.cpp
delegates\delegateDebugCodes.h
delegates\sceneDelegate.cpp
delegates\sceneDelegate.h
usdmaya\nodes\ProxyShape.cpp
usdmaya\nodes\ProxyShapeUI.cpp
@HamedSabri-adsk what's the string that you were looking for? I examined a few files that you have listed, but they do not have code conditionally compiled for |
@kxl-adsk right, I explicitly searched for both 19.07 and 19.11. The places that I mentioned above are where we have 19.11. If I am not mistaking, there are places in those files that we still implicitly use code from earlier version of 19.11. e.g lib/mayaUsd/render/mayaToHydra/renderOverride.cpp
The else condition above happens to older version of 19.11. I was under the impression that these needs to be also removed? |
Good catch...my weekend brain missed that! |
@kxl-adsk Thank you for the changes. There are couple of places in lib/mayaUsd/render/pxrUsdMayaGL/batchRenderer.cpp that can be cleaned up : line 880 - 888 |
@HamedSabri-adsk what exactly you propose to remove at these lines? For example
Else case is required for 19.11 version. |
@kxl-adsk the else condition applies to older version of 19.11 maya-usd/lib/mayaUsd/render/pxrUsdMayaGL/batchRenderer.cpp Lines 888 to 896 in 4a38768
|
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.
@kxl-adsk lgtm! Thank you.
With recent support added for USD 20.08, we are dropping support for fairly old 19.07.