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.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user