Commit: 9e55344d890ba0bcc6fe972758e01c43c9f843eb
Author: Hans Goudey
Date:   Wed Sep 2 14:31:30 2020 -0500
Branches: fcurve-modifier-panels
https://developer.blender.org/rB9e55344d890ba0bcc6fe972758e01c43c9f843eb

Add versioning for graph editor FModifier panel expansion

===================================================================

M       source/blender/blenloader/intern/versioning_290.c

===================================================================

diff --git a/source/blender/blenloader/intern/versioning_290.c 
b/source/blender/blenloader/intern/versioning_290.c
index 269c2083ef4..4d67e511cd2 100644
--- a/source/blender/blenloader/intern/versioning_290.c
+++ b/source/blender/blenloader/intern/versioning_290.c
@@ -25,6 +25,7 @@
 #include "BLI_string.h"
 #include "BLI_utildefines.h"
 
+#include "DNA_anim_types.h"
 #include "DNA_brush_types.h"
 #include "DNA_cachefile_types.h"
 #include "DNA_constraint_types.h"
@@ -547,5 +548,19 @@ void blo_do_versions_290(FileData *fd, Library 
*UNUSED(lib), Main *bmain)
    */
   {
     /* Keep this block, even when empty. */
+
+    /* Move to storing expansion for all panels of FModifiers. */
+    LISTBASE_FOREACH (bAction *, act, &bmain->actions) {
+      LISTBASE_FOREACH (FCurve *, fcu, &act->curves) {
+        LISTBASE_FOREACH (FModifier *, fcm, &fcu->modifiers) {
+          if (fcm->flag & FMODIFIER_FLAG_EXPANDED_DEPRECATED) {
+            fcm->ui_expand_flag = 1;
+          }
+          else {
+            fcm->ui_expand_flag = 0;
+          }
+        }
+      }
+    }
   }
 }

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to