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:
authorPhilipp Oeser <info@graphics-engineer.com>2019-11-12 17:25:32 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2019-11-15 23:45:52 +0300
commite5b788bad8bcb526fba273915290ef3abc9b24d2 (patch)
tree2feeb8497794a715034920ac8bbba1a3f291b379
parent17cb32c7bc7c772ea5f07476bf69554e2c79dd02 (diff)
Fix T68191: Make-instances-real doesn't select the new instances
2.79 also did this [select the new instances] which was useful. 2.79 also kept the instancer selected [this patch deselects] Reviewed By: mont29 Maniphest Tasks: T68191 Differential Revision: https://developer.blender.org/D6233
-rw-r--r--source/blender/editors/object/object_add.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/editors/object/object_add.c b/source/blender/editors/object/object_add.c
index b15a245c0f2..f27e525449d 100644
--- a/source/blender/editors/object/object_add.c
+++ b/source/blender/editors/object/object_add.c
@@ -1803,6 +1803,9 @@ static void make_object_duplilist_real(bContext *C,
base_dst = BKE_view_layer_base_find(view_layer, ob_dst);
BLI_assert(base_dst != NULL);
+ ED_object_base_select(base_dst, BA_SELECT);
+ DEG_id_tag_update(&ob_dst->id, ID_RECALC_SELECT);
+
BKE_scene_object_base_flag_sync_from_base(base_dst);
/* make sure apply works */
@@ -1938,6 +1941,9 @@ static void make_object_duplilist_real(bContext *C,
base->object->instance_collection = NULL;
}
+ ED_object_base_select(base, BA_DESELECT);
+ DEG_id_tag_update(&base->object->id, ID_RECALC_SELECT);
+
BLI_ghash_free(dupli_gh, NULL, NULL);
if (parent_gh) {
BLI_ghash_free(parent_gh, NULL, NULL);