Fix ignoring of human non-zero model ids.

This commit is contained in:
Ottermandias 2023-07-31 18:18:33 +02:00
parent 8c427e49e3
commit d1bb2ddefe
3 changed files with 14 additions and 4 deletions

View file

@ -167,7 +167,10 @@ public class DesignPanel
private void DrawCustomize()
{
if (!ImGui.CollapsingHeader("Customization"))
var header = _selector.Selected!.DesignData.ModelId == 0
? "Customization"
: $"Customization (Model Id #{_selector.Selected!.DesignData.ModelId})###Customization";
if (!ImGui.CollapsingHeader(header))
return;
if (_customizationDrawer.Draw(_selector.Selected!.DesignData.Customize, _selector.Selected.ApplyCustomize,