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:
authorCampbell Barton <ideasman42@gmail.com>2018-02-16 15:37:47 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-02-16 16:01:25 +0300
commit18bb0bc5693927f0e7393f717fdb7d844d4cd69d (patch)
treea4eb90e3865aa9989ca726fe1467dab0c2eab808 /source/blender/editors/object
parentce4d52c4f3ed1cfbe7c13eab0ec94e27a4ab6904 (diff)
Object Mode: exit sculpt on selection
Diffstat (limited to 'source/blender/editors/object')
-rw-r--r--source/blender/editors/object/object_select.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/object/object_select.c b/source/blender/editors/object/object_select.c
index 55c0b4c2bdd..8a62438dc80 100644
--- a/source/blender/editors/object/object_select.c
+++ b/source/blender/editors/object/object_select.c
@@ -146,7 +146,6 @@ void ED_object_base_activate(bContext *C, Base *base)
* Not correct because it's possible other work-spaces use these.
* although that's a corner case. */
if (workspace->object_mode & OB_MODE_EDIT) {
- Object *obact = OBACT(view_layer);
FOREACH_OBJECT(view_layer, ob) {
if (ob != base->object) {
if (BKE_object_is_in_editmode(ob)) {
@@ -157,7 +156,8 @@ void ED_object_base_activate(bContext *C, Base *base)
FOREACH_OBJECT_END;
}
else if (workspace->object_mode & (OB_MODE_VERTEX_PAINT | OB_MODE_WEIGHT_PAINT | OB_MODE_SCULPT)) {
- Object *obact = OBACT(view_layer);
+ EvaluationContext eval_ctx;
+ CTX_data_eval_ctx(C, &eval_ctx);
FOREACH_OBJECT(view_layer, ob) {
if (ob != base->object) {
if (ob->sculpt) {
@@ -174,7 +174,7 @@ void ED_object_base_activate(bContext *C, Base *base)
}
case OB_MODE_SCULPT:
{
- /* TODO */
+ ED_object_sculptmode_exit_ex(&eval_ctx, workspace, scene, ob);
break;
}
}