Browse Source

Fix non-existent pose soft locking pose selector

Closes #40
habeebweeb 3 years ago
parent
commit
1664c7e938
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/MeidoPhotoStudio.Plugin/Meido/Meido.cs

+ 4 - 0
src/MeidoPhotoStudio.Plugin/Meido/Meido.cs

@@ -373,11 +373,15 @@ namespace MeidoPhotoStudio.Plugin
                 {
                     Utility.LogWarning($"{poseFilename}: Could not open because {e.Message}");
                     Constants.InitializeCustomPoses();
+                    SetPose(PoseInfo.DefaultPose);
+                    OnUpdateMeido();
                     return;
                 }
                 catch (Exception e)
                 {
                     Utility.LogWarning($"{poseFilename}: Could not apply pose because {e.Message}");
+                    SetPose(PoseInfo.DefaultPose);
+                    OnUpdateMeido();
                     return;
                 }
                 SetMune(true, left: true);