Browse Source

Make change in determining custom pose group index

habeebweeb 4 years ago
parent
commit
c713248cd4
1 changed files with 2 additions and 2 deletions
  1. 2 2
      COM3D2.MeidoPhotoStudio.Plugin/MeidoPhotoStudio/Constants.cs

+ 2 - 2
COM3D2.MeidoPhotoStudio.Plugin/MeidoPhotoStudio/Constants.cs

@@ -66,7 +66,6 @@ namespace COM3D2.MeidoPhotoStudio.Plugin
             {
                 PoseDict[poseList.UIName] = poseList.PoseList;
                 PoseGroupList.Add(poseList.UIName);
-                CustomPoseGroupsIndex++;
             }
 
             // Get Other poses that'll go into Normal 2 and Ero 2
@@ -118,9 +117,10 @@ namespace COM3D2.MeidoPhotoStudio.Plugin
                 PoseDict["ero2"] = eroPoseList;
 
                 PoseGroupList.AddRange(new[] { "normal2", "ero2" });
-                CustomPoseGroupsIndex += 2;
             }
 
+            CustomPoseGroupsIndex = PoseDict.Count;
+
             Action<string> GetPoses = (directory) =>
             {
                 List<KeyValuePair<string, string>> poseList = new List<KeyValuePair<string, string>>();