Skip to content

Commit

Permalink
Merge pull request #1672 from Hoikas/fix_1622
Browse files Browse the repository at this point in the history
Fix #1622
  • Loading branch information
Hoikas authored Mar 5, 2025
2 parents 6fcea9b + e16c71b commit 1426030
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Sources/MaxPlugin/MaxComponent/plPickMaterialMap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class hsHackWinFindThread : public hsThread
void Run() override
{
SetThisThreadName(ST_LITERAL("hsHackWinFindThread"));
while (1)
while (!GetQuit())
{
HWND hMtlDlg = FindWindow(nullptr, _T("Material/Map Browser"));
if (hMtlDlg && IsWindowVisible(GetDlgItem(hMtlDlg, kOK)))
Expand All @@ -82,6 +82,8 @@ class hsHackWinFindThread : public hsThread
EnableWindow(GetDlgItem(hMtlDlg, kNew), FALSE);
return;
}

std::this_thread::sleep_for(std::chrono::milliseconds(10));
}
}
};
Expand Down

0 comments on commit 1426030

Please sign in to comment.