diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2015-11-11 22:18:50 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2015-11-11 22:21:37 +0300 |
commit | d75bca1842fcea6af3f8b398b498d3e4ab91dbc5 (patch) | |
tree | 023a296cfa67c73346d813fff9b5a3e8f8e7aab2 /source/blender/editors/object | |
parent | 9cff20e5c6ee9675087bc847964c11a4d565f803 (diff) |
Cleanup: replace more direct id->us handling by calls to BKE_library API.
Diffstat (limited to 'source/blender/editors/object')
-rw-r--r-- | source/blender/editors/object/object_relations.c | 5 |
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; |