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:
authorJulian Eisel <eiseljulian@gmail.com>2017-05-05 20:28:02 +0300
committerJulian Eisel <eiseljulian@gmail.com>2017-05-05 20:32:06 +0300
commitcffe15e9c9ead5dfe0c01deac8d7cc292fce95ef (patch)
treec8726e277f754f53b791b6e38f9ff9b9b0dd8f9f /source/blender/editors/object
parentd9949c351d20bf911d273d0b43bbdad624741ddf (diff)
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.
Diffstat (limited to 'source/blender/editors/object')
-rw-r--r--source/blender/editors/object/object_add.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/object/object_add.c b/source/blender/editors/object/object_add.c
index 68332004e54..177168aa3c3 100644
--- a/source/blender/editors/object/object_add.c
+++ b/source/blender/editors/object/object_add.c
@@ -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;