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:
parent
d9949c351d
commit
cffe15e9c9
|
@ -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));
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue