Prevent applying to target in GPose.

This commit is contained in:
Ottermandias 2023-07-15 18:04:15 +02:00
parent 3b55f72ce5
commit b1d1f9c2eb
2 changed files with 2 additions and 2 deletions

View file

@ -372,7 +372,7 @@ public class ActorPanel
? "Apply the current state to your current target."
: "The current target can not be manipulated."
: "No valid target selected.";
if (!ImGuiUtil.DrawDisabledButton("Apply to Target", Vector2.Zero, tt, !data.Valid || id == _identifier || !_state!.ModelData.IsHuman))
if (!ImGuiUtil.DrawDisabledButton("Apply to Target", Vector2.Zero, tt, !data.Valid || id == _identifier || !_state!.ModelData.IsHuman || _objects.IsInGPose))
return;
if (_stateManager.GetOrCreate(id, data.Objects[0], out var state))

View file

@ -360,7 +360,7 @@ public class DesignPanel
? "Apply the current design with its settings to your current target."
: "The current target can not be manipulated."
: "No valid target selected.";
if (!ImGuiUtil.DrawDisabledButton("Apply to Target", Vector2.Zero, tt, !data.Valid))
if (!ImGuiUtil.DrawDisabledButton("Apply to Target", Vector2.Zero, tt, !data.Valid || _objects.IsInGPose))
return;
if (_state.GetOrCreate(id, data.Objects[0], out var state))