Fix T71452: instance collection to scene from outliner not incrementing collection usercount
Maniphest Tasks: T71452 Differential Revision: https://developer.blender.org/D6222
This commit is contained in:
@@ -676,6 +676,7 @@ static int collection_instance_exec(bContext *C, wmOperator *UNUSED(op))
|
|||||||
ob->instance_collection = collection;
|
ob->instance_collection = collection;
|
||||||
ob->transflag |= OB_DUPLICOLLECTION;
|
ob->transflag |= OB_DUPLICOLLECTION;
|
||||||
id_lib_extern(&collection->id);
|
id_lib_extern(&collection->id);
|
||||||
|
id_us_plus(&collection->id);
|
||||||
}
|
}
|
||||||
|
|
||||||
BLI_gset_free(data.collections_to_edit, NULL);
|
BLI_gset_free(data.collections_to_edit, NULL);
|
||||||
|
Reference in New Issue
Block a user