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:
authorBastien Montagne <montagne29@wanadoo.fr>2019-06-09 23:53:48 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2019-06-09 23:59:36 +0300
commit78bbf374f475d370ff07a59ade5b62f61433955c (patch)
tree9a4485e28bddf80aef3a80763c242486ddba979d /source/blender/editors/object
parent5dc9797f0b9f435126ca8bf0a16bbe1e11a1d0a2 (diff)
Fix T65301: Convert to mesh with Keep Original loses adjust operator panel.
We need to properly select new objects (and deselect 'source' ones) when converting to another type while keeping original ones. Otherwise poll check of the operator fails, and redo panel cannot be shown. Note that this is actually a design flaw in redo system currently, since *new* state has to still allow last operator to be ran, when it should actually be previous step in history that matters here...
Diffstat (limited to 'source/blender/editors/object')
-rw-r--r--source/blender/editors/object/object_add.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/editors/object/object_add.c b/source/blender/editors/object/object_add.c
index 5e5537992e4..7d54f12df8f 100644
--- a/source/blender/editors/object/object_add.c
+++ b/source/blender/editors/object/object_add.c
@@ -2342,6 +2342,11 @@ static int convert_exec(bContext *C, wmOperator *op)
basact = basen;
}
+ if (keep_original) {
+ ED_object_base_select(base, BA_DESELECT);
+ ED_object_base_select(basen, BA_SELECT);
+ }
+
basen = NULL;
}