Commit: 3af90151399fb0ce011c42a531cf3ca8eb437e6a
Author: Bastien Montagne
Date: Thu Sep 4 15:03:03 2014 +0200
Branches: master
https://developer.blender.org/rB3af90151399fb0ce011c42a531cf3ca8eb437e6a
Fix related to previous commit: do not store panels (state, position, etc.) in
default startup.
In this case, we want to use defaults as defined by UI code (among other, from
order of registering),
there is no point in storing those data in factory startup.
===================================================================
M source/blender/blenloader/intern/versioning_defaults.c
===================================================================
diff --git a/source/blender/blenloader/intern/versioning_defaults.c
b/source/blender/blenloader/intern/versioning_defaults.c
index 02f9c1f..217d1f0 100644
--- a/source/blender/blenloader/intern/versioning_defaults.c
+++ b/source/blender/blenloader/intern/versioning_defaults.c
@@ -26,6 +26,7 @@
*/
#include "BLI_utildefines.h"
+#include "BLI_listbase.h"
#include "BLI_math.h"
#include "DNA_brush_types.h"
@@ -107,12 +108,19 @@ void BLO_update_defaults_startup_blend(Main *bmain)
ScrArea *area;
for (area = screen->areabase.first; area; area =
area->next) {
SpaceLink *space_link;
+ ARegion *ar;
+
for (space_link = area->spacedata.first;
space_link; space_link = space_link->next) {
if (space_link->spacetype ==
SPACE_CLIP) {
SpaceClip *space_clip =
(SpaceClip *) space_link;
space_clip->flag &=
~SC_MANUAL_CALIBRATION;
}
}
+
+ /* Remove all stored panels, we want to use
defaults (order, open/closed) as defined by UI code here! */
+ for (ar = area->regionbase.first; ar; ar =
ar->next) {
+ BLI_freelistN(&ar->panels);
+ }
}
}
}
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs