Brush Assets: Remove local brushes from default startup file #120039
@ -915,8 +915,10 @@ void BLO_update_defaults_startup_blend(Main *bmain, const char *app_template)
|
|||||||
LISTBASE_FOREACH (SpaceLink *, space_link, &area->spacedata) {
|
LISTBASE_FOREACH (SpaceLink *, space_link, &area->spacedata) {
|
||||||
if (space_link->spacetype == SPACE_OUTLINER) {
|
if (space_link->spacetype == SPACE_OUTLINER) {
|
||||||
SpaceOutliner *space_outliner = reinterpret_cast<SpaceOutliner *>(space_link);
|
SpaceOutliner *space_outliner = reinterpret_cast<SpaceOutliner *>(space_link);
|
||||||
BLI_mempool_destroy(space_outliner->treestore);
|
if (space_outliner->treestore) {
|
||||||
HooglyBoogly marked this conversation as resolved
Outdated
|
|||||||
space_outliner->treestore = nullptr;
|
BLI_mempool_destroy(space_outliner->treestore);
|
||||||
|
space_outliner->treestore = nullptr;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user
I would check
if (space_outliner->treestore != nullptr)
, it's fragile to depend on this existing in the .blend.Oh, good point, thanks