Fix T56081: crash with make static override and linked collection.
This commit is contained in:
parent
882ccd924b
commit
293c15ec0c
Notes:
blender-bot
2023-02-14 05:32:38 +01:00
Referenced by issue #56081, make static override on a linked collection will crash blender
|
@ -2329,6 +2329,7 @@ static int make_override_static_exec(bContext *C, wmOperator *op)
|
|||
if (new_ob != NULL && new_ob->id.override_static != NULL) {
|
||||
if ((base = BKE_view_layer_base_find(view_layer, new_ob)) == NULL) {
|
||||
BKE_collection_object_add_from(bmain, scene, obcollection, new_ob);
|
||||
base = BKE_view_layer_base_find(view_layer, new_ob);
|
||||
DEG_id_tag_update_ex(bmain, &new_ob->id, DEG_TAG_TRANSFORM | DEG_TAG_BASE_FLAGS_UPDATE);
|
||||
}
|
||||
/* parent to 'collection' empty */
|
||||
|
|
Loading…
Reference in New Issue