mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Recast: fix editor settings bug causing a crash
Make sure Sample Distance cannot be set lower than 1, doing so will cause crash in sampling code. Clamp between 1 and 16.
This commit is contained in:
parent
df1dfea806
commit
025a23991f
@ -233,7 +233,7 @@ void Editor::handleCommonSettings()
|
||||
|
||||
imguiSeparator();
|
||||
imguiLabel("Detail Mesh");
|
||||
imguiSlider("Sample Distance", &m_detailSampleDist, 0.0f, 16.0f, 1.0f);
|
||||
imguiSlider("Sample Distance", &m_detailSampleDist, 1.0f, 16.0f, 1.0f);
|
||||
imguiSlider("Max Sample Error", &m_detailSampleMaxError, 0.0f, 16.0f, 1.0f);
|
||||
|
||||
imguiSeparator();
|
||||
|
Loading…
x
Reference in New Issue
Block a user