From 56e84bde2f80ca6ba223675271d8813819b44f6a Mon Sep 17 00:00:00 2001 From: Fabrice Macagno Date: Mon, 24 Sep 2018 15:51:31 +1000 Subject: [PATCH] Temporary restore alwaysDirty ProxyDrawOrride (cherry picked from commit 6060036b78539b9b39c4b305c742e56571614e94) MAYA-95165 : Crash when duplicating USD objects The regression was introduced by the commit https://git.autodesk.com/autodesk-forks/AL_USDMaya/commit/321be29175a43aa270bb9d50387ac335c0d483d0 To avoid that problem we cherry-picked the correction from the last updates in the develop branch. --- lib/AL_USDMaya/AL/usdmaya/nodes/ProxyDrawOverride.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/AL_USDMaya/AL/usdmaya/nodes/ProxyDrawOverride.cpp b/lib/AL_USDMaya/AL/usdmaya/nodes/ProxyDrawOverride.cpp index ef46b6fd..54d4d20d 100644 --- a/lib/AL_USDMaya/AL/usdmaya/nodes/ProxyDrawOverride.cpp +++ b/lib/AL_USDMaya/AL/usdmaya/nodes/ProxyDrawOverride.cpp @@ -75,7 +75,7 @@ MUint64 ProxyDrawOverride::s_lastRefreshFrameStamp = 0; //---------------------------------------------------------------------------------------------------------------------- ProxyDrawOverride::ProxyDrawOverride(const MObject& obj) #if MAYA_API_VERSION >= 201700 - : MHWRender::MPxDrawOverride(obj, draw, false) + : MHWRender::MPxDrawOverride(obj, draw, true) #else : MHWRender::MPxDrawOverride(obj, draw) #endif