mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2025-12-13 12:14:18 +01:00
Fix issue with materials.
This commit is contained in:
parent
7af0a1d562
commit
5ddf882077
2 changed files with 3 additions and 1 deletions
|
|
@ -162,6 +162,7 @@ public sealed unsafe class AdvancedDyePopup(
|
||||||
ImGui.SetNextWindowPos(position);
|
ImGui.SetNextWindowPos(position);
|
||||||
flags |= ImGuiWindowFlags.NoMove;
|
flags |= ImGuiWindowFlags.NoMove;
|
||||||
}
|
}
|
||||||
|
|
||||||
var size = new Vector2(7 * ImGui.GetFrameHeight() + 3 * ImGui.GetStyle().ItemInnerSpacing.X + 300 * ImGuiHelpers.GlobalScale,
|
var size = new Vector2(7 * ImGui.GetFrameHeight() + 3 * ImGui.GetStyle().ItemInnerSpacing.X + 300 * ImGuiHelpers.GlobalScale,
|
||||||
18 * ImGui.GetFrameHeightWithSpacing() + ImGui.GetStyle().WindowPadding.Y + 2 * ImGui.GetStyle().ItemSpacing.Y);
|
18 * ImGui.GetFrameHeightWithSpacing() + ImGui.GetStyle().WindowPadding.Y + 2 * ImGui.GetStyle().ItemSpacing.Y);
|
||||||
ImGui.SetNextWindowSize(size);
|
ImGui.SetNextWindowSize(size);
|
||||||
|
|
@ -261,6 +262,7 @@ public sealed unsafe class AdvancedDyePopup(
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
_anyChanged = true;
|
_anyChanged = true;
|
||||||
|
value = new MaterialValueState(value.Game, value.Model, value.DrawData, StateSource.Manual);
|
||||||
}
|
}
|
||||||
|
|
||||||
var buttonSize = new Vector2(ImGui.GetFrameHeight());
|
var buttonSize = new Vector2(ImGui.GetFrameHeight());
|
||||||
|
|
|
||||||
|
|
@ -331,7 +331,7 @@ public class StateEditor(
|
||||||
var source = settings.Source.SetPending();
|
var source = settings.Source.SetPending();
|
||||||
if (state.Materials.TryGetValue(idx, out var materialState))
|
if (state.Materials.TryGetValue(idx, out var materialState))
|
||||||
{
|
{
|
||||||
if (settings.RespectManual && !materialState.Source.IsManual())
|
if (settings.RespectManual && materialState.Source.IsManual())
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (value.Revert)
|
if (value.Revert)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue