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:
parent
bf54ed0c7c
commit
3af9015139
Notes:
blender-bot
2023-06-07 10:31:13 +02:00
Referenced by issue #42032, AFTER 2.73 - startup.blend: updates for proper re-ordering of newly added Freestyle panels
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue