Bladeren bron

Save face presets properly

What a mess
habeebweeb 4 jaren geleden
bovenliggende
commit
dd2e2b8902

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

@@ -1,4 +1,4 @@
-using System;
+using System;
 using System.Collections.Generic;
 using System.IO;
 using System.Linq;
@@ -171,7 +171,7 @@ namespace COM3D2.MeidoPhotoStudio.Plugin
             if (string.IsNullOrEmpty(faceGroup))
             {
                 CustomFaceGroupList.Add(category);
-                CustomHandDict[category] = new List<string>();
+                CustomFaceDict[category] = new List<string>();
             }
             else category = faceGroup;
 

+ 7 - 2
COM3D2.MeidoPhotoStudio.Plugin/MeidoPhotoStudio/GUI/Panes/FaceWindowPanes/MaidFaceBlendPane.cs

@@ -134,8 +134,13 @@ namespace COM3D2.MeidoPhotoStudio.Plugin
 
         private void SaveFaceEnd(object sender, CustomPoseEventArgs args)
         {
-            faceBlendSourceGrid.SelectedItemIndex = 1;
-            faceBlendCategoryDropdown.SelectedItemIndex = Constants.CustomHandGroupList.IndexOf(args.Category);
+                updating = true;
+                faceBlendSourceGrid.SelectedItemIndex = 1;
+                faceBlendCategoryDropdown.SetDropdownItems(
+                    CurrentFaceGroupList.ToArray(), CurrentFaceGroupList.IndexOf(args.Category)
+                );
+                updating = false;
+                faceBlendDropdown.SetDropdownItems(UIFaceList(), CurrentFaceList.IndexOf(args.Path));
         }
     }
 }