Select new object bases using object's base flag

This fixes object duplicate operator.
This commit is contained in:
Campbell Barton 2017-05-04 04:14:58 +10:00
parent 628dad4f01
commit 51a977a86f
1 changed files with 4 additions and 0 deletions

View File

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