From 83844be29161db8292c1a69e44ea42ec8bad7a62 Mon Sep 17 00:00:00 2001 From: Joseph Davies Date: Sat, 11 Mar 2023 00:22:27 -0800 Subject: [PATCH] Revert "Fix 3dsMax python parameters." This reverts commit 107af8272d8bfa9200c27017bd4d5439da9b8097. --- Sources/Tools/MaxComponent/plAutoUIBase.cpp | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/Sources/Tools/MaxComponent/plAutoUIBase.cpp b/Sources/Tools/MaxComponent/plAutoUIBase.cpp index 510c8f4c9f..2187beaa0f 100644 --- a/Sources/Tools/MaxComponent/plAutoUIBase.cpp +++ b/Sources/Tools/MaxComponent/plAutoUIBase.cpp @@ -512,17 +512,7 @@ void plAutoUIBase::ICreateControls() RECT rect; GetWindowRect(fhDlg, &rect); - - // This used to use MoveWindow() to resize the rollup, but in Max 2022, - // that does not seem to work anymore. So, we now do the same thing - // that WM_SIZE_PANEL does. - IRollupWindow* rollup = GetCOREInterface()->GetCommandPanelRollup(); - int index = rollup->GetPanelIndex(fhDlg); - - if (index >= 0) - rollup->SetPageDlgHeight(index, yOffset + 5); - - InvalidateRect(fhDlg, nullptr, TRUE); + MoveWindow(fhDlg, rect.left, rect.top, rect.right - rect.left, yOffset+5, FALSE); } void plAutoUIBase::CreateAutoRollup(IParamBlock2 *pb)