Fix all objects being selected when opening pre-2.80 files

Caused by rBe87ddda149b. Selecting objects shouldn't be done in such a
low level function anyway (IMHO).
Made sure duplicating objects still works correctly.
This commit is contained in:
Julian Eisel 2017-05-05 19:28:02 +02:00
parent d9949c351d
commit cffe15e9c9
2 changed files with 1 additions and 1 deletions

View File

@ -806,7 +806,6 @@ static void layer_collection_object_add(SceneLayer *sl, LayerCollection *lc, Obj
if (is_selectable) {
base->flag |= BASE_SELECTABLED;
base->flag |= BASE_SELECTED;
}
BLI_addtail(&lc->object_bases, BLI_genericNodeN(base));

View File

@ -2266,6 +2266,7 @@ static int duplicate_exec(bContext *C, wmOperator *op)
/* note that this is safe to do with this context iterator,
* the list is made in advance */
ED_object_base_select(base, BA_DESELECT);
ED_object_base_select(basen, BA_SELECT);
if (basen == NULL) {
continue;