Explorar o código

Fix non-existent pose soft locking pose selector

Closes #40
habeebweeb %!s(int64=3) %!d(string=hai) anos
pai
achega
1664c7e938
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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);