Skip to content

Commit

Permalink
Merge pull request #1619 from Hoikas/fix_1617
Browse files Browse the repository at this point in the history
Fix #1617.
  • Loading branch information
dpogue authored Oct 14, 2024
2 parents 1fcc0eb + 47f085f commit d9ee8e9
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions Sources/MaxPlugin/MaxPlasmaMtls/Materials/plClothingMtlPBDec.h
Original file line number Diff line number Diff line change
Expand Up @@ -255,15 +255,27 @@ class ClothingBasicDlgProc : public ParamMap2UserDlgProc
case WM_COMMAND:
if (id == IDC_CLOTHING_TILESET)
{
if (HIWORD(wParam) != CBN_SELCHANGE)
return FALSE;

int setIdx = (int)SendMessage(GetDlgItem(hWnd, id), CB_GETCURSEL, 0, 0);
pb->SetValue(plClothingMtl::kTileset, t, setIdx);
if (setIdx != CB_ERR) {
pb->SetValue(plClothingMtl::kTileset, t, setIdx);
pb->GetDesc()->InvalidateUI();
}
return TRUE;
}

if (id == IDC_CLOTHING_LAYER)
{

pb->SetValue(plClothingMtl::kLayer, t, ComboBox_GetCurSel(GetDlgItem(hWnd, id)));
if (HIWORD(wParam) != CBN_SELCHANGE)
return FALSE;

int setIdx = (int)ComboBox_GetCurSel(GetDlgItem(hWnd, id));
if (setIdx != CB_ERR) {
pb->SetValue(plClothingMtl::kLayer, t, setIdx);
pb->GetDesc()->InvalidateUI();
}
return TRUE;
}

Expand Down

0 comments on commit d9ee8e9

Please sign in to comment.