Skip to content

Commit

Permalink
Remove posemode option for now
Browse files Browse the repository at this point in the history
Will re-enable when properly figured out, but local is enough for now
  • Loading branch information
PassiveModding committed Oct 6, 2024
1 parent 17f68f1 commit 416d21c
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 26 deletions.
4 changes: 2 additions & 2 deletions Meddle/Meddle.Plugin/Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,11 @@ public class Configuration : IPluginConfiguration
/// If enabled, pose will be included at 0 on the timeline under the 'pose' track.
/// </summary>
public bool IncludePose { get; set; } = true;

/// <summary>
/// Indicates whether scaling should be taken from the model pose rather than the local pose.
/// </summary>
public SkeletonUtils.PoseMode PoseMode { get; set; } = DefaultPoseMode;
public SkeletonUtils.PoseMode PoseMode => SkeletonUtils.PoseMode.Local;//{ get; set; } = DefaultPoseMode;

public TextureMode TextureMode { get; set; } = TextureMode.Bake;

Expand Down
48 changes: 24 additions & 24 deletions Meddle/Meddle.Plugin/UI/OptionsTab.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public void Draw()
ImGui.EndTooltip();
}

DrawPoseMode();
// DrawPoseMode();

DrawCharacterTextureMode();

Expand Down Expand Up @@ -134,29 +134,29 @@ public void Draw()
}
}

private void DrawPoseMode()
{
var poseMode = config.PoseMode;
if (ImGui.BeginCombo("Pose Mode", poseMode.ToString()))
{
foreach (var mode in Enum.GetValues<SkeletonUtils.PoseMode>())
{
if (ImGui.Selectable(mode.ToString(), mode == poseMode))
{
config.PoseMode = mode;
config.Save();
}
}

ImGui.EndCombo();
}

if (!Enum.IsDefined(typeof(SkeletonUtils.PoseMode), config.PoseMode))
{
config.PoseMode = Configuration.DefaultPoseMode;
config.Save();
}
}
// private void DrawPoseMode()
// {
// var poseMode = config.PoseMode;
// if (ImGui.BeginCombo("Pose Mode", poseMode.ToString()))
// {
// foreach (var mode in Enum.GetValues<SkeletonUtils.PoseMode>())
// {
// if (ImGui.Selectable(mode.ToString(), mode == poseMode))
// {
// config.PoseMode = mode;
// config.Save();
// }
// }
//
// ImGui.EndCombo();
// }
//
// if (!Enum.IsDefined(typeof(SkeletonUtils.PoseMode), config.PoseMode))
// {
// config.PoseMode = Configuration.DefaultPoseMode;
// config.Save();
// }
// }

private void DrawCharacterTextureMode()
{
Expand Down

0 comments on commit 416d21c

Please sign in to comment.