Skip to content

Commit

Permalink
Revert "Fix 3dsMax python parameters."
Browse files Browse the repository at this point in the history
This reverts commit 107af82.
  • Loading branch information
Deledrius committed Mar 12, 2023
1 parent 8e2a050 commit 83844be
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions Sources/Tools/MaxComponent/plAutoUIBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 83844be

Please sign in to comment.