Fix used dye channel in material editor previews.

This commit is contained in:
Ottermandias 2025-01-14 14:34:34 +01:00
parent 30a4b90e84
commit cc981eba15

View file

@ -603,6 +603,7 @@ public partial class MtrlTab
value => dyeTable[rowIdx].Channel = (byte)(Math.Clamp(value, 1, StainService.ChannelCount) - 1)); value => dyeTable[rowIdx].Channel = (byte)(Math.Clamp(value, 1, StainService.ChannelCount) - 1));
ImGui.SameLine(subColWidth); ImGui.SameLine(subColWidth);
ImGui.SetNextItemWidth(scalarSize); ImGui.SetNextItemWidth(scalarSize);
_stainService.GudTemplateCombo.CurrentDyeChannel = dye.Channel;
if (_stainService.GudTemplateCombo.Draw("##dyeTemplate", dye.Template.ToString(), string.Empty, if (_stainService.GudTemplateCombo.Draw("##dyeTemplate", dye.Template.ToString(), string.Empty,
scalarSize + ImGui.GetStyle().ScrollbarSize / 2, ImGui.GetTextLineHeightWithSpacing(), ImGuiComboFlags.NoArrowButton)) scalarSize + ImGui.GetStyle().ScrollbarSize / 2, ImGui.GetTextLineHeightWithSpacing(), ImGuiComboFlags.NoArrowButton))
{ {