Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/editors/object')
-rw-r--r--source/blender/editors/object/object_relations.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/source/blender/editors/object/object_relations.c b/source/blender/editors/object/object_relations.c
index a89ef8b7e85..4bb541b2de1 100644
--- a/source/blender/editors/object/object_relations.c
+++ b/source/blender/editors/object/object_relations.c
@@ -2184,10 +2184,7 @@ static bool make_local_all__instance_indirect_unused(Main *bmain, Scene *scene)
if (ob->id.lib && (ob->id.us == 0)) {
Base *base;
- ob->id.us = 1;
-
- /* not essential, but for correctness */
- id_lib_extern(&ob->id);
+ id_us_plus(&ob->id);
base = BKE_scene_base_add(scene, ob);
base->flag |= SELECT;