[Bf-blender-cvs] [f1f1c328495] blender2.8: Object Modes: don't de-select others when activating
Campbell Barton
noreply at git.blender.org
Wed May 30 15:52:21 CEST 2018
Commit: f1f1c3284950902f7597931bd1044f085d2ef634
Author: Campbell Barton
Date: Wed May 30 15:50:52 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBf1f1c3284950902f7597931bd1044f085d2ef634
Object Modes: don't de-select others when activating
===================================================================
M source/blender/editors/space_outliner/outliner_select.c
===================================================================
diff --git a/source/blender/editors/space_outliner/outliner_select.c b/source/blender/editors/space_outliner/outliner_select.c
index dfeea12a2f1..0e30c43998e 100644
--- a/source/blender/editors/space_outliner/outliner_select.c
+++ b/source/blender/editors/space_outliner/outliner_select.c
@@ -276,7 +276,15 @@ static eOLDrawState tree_element_set_active_object(
}
else {
/* deleselect all */
- BKE_view_layer_base_deselect_all(view_layer);
+#ifdef USE_OBJECT_MODE_STRICT
+ /* Only in object mode so we can switch the active object,
+ * keeping all objects in the current 'mode' selected, useful for multi-pose/edit mode.
+ * This keeps the convention that all objects in the current mode are also selected. see T55246. */
+ if (ob->mode == OB_MODE_OBJECT)
+#endif
+ {
+ BKE_view_layer_base_deselect_all(view_layer);
+ }
ED_object_base_select(base, BA_SELECT);
}
More information about the Bf-blender-cvs
mailing list