Skip to content

Commit cc981eb

Browse files
committed
Fix used dye channel in material editor previews.
1 parent 30a4b90 commit cc981eb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Penumbra/UI/AdvancedWindow/Materials/MtrlTab.ColorTable.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -603,6 +603,7 @@ private bool DrawDye(ColorDyeTable dyeTable, DyePack? dyePack, int rowIdx)
603603
value => dyeTable[rowIdx].Channel = (byte)(Math.Clamp(value, 1, StainService.ChannelCount) - 1));
604604
ImGui.SameLine(subColWidth);
605605
ImGui.SetNextItemWidth(scalarSize);
606+
_stainService.GudTemplateCombo.CurrentDyeChannel = dye.Channel;
606607
if (_stainService.GudTemplateCombo.Draw("##dyeTemplate", dye.Template.ToString(), string.Empty,
607608
scalarSize + ImGui.GetStyle().ScrollbarSize / 2, ImGui.GetTextLineHeightWithSpacing(), ImGuiComboFlags.NoArrowButton))
608609
{

0 commit comments

Comments
 (0)