Commit: 479aaccc9322bd2091d51ac65022bf458b1c03f5
Author: Nathan Craddock
Date:   Wed Jun 17 20:51:27 2020 -0600
Branches: soc-2020-outliner
https://developer.blender.org/rB479aaccc9322bd2091d51ac65022bf458b1c03f5

Add mesh to properties sync

===================================================================

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 d03db5e57bb..3c938ae1082 100644
--- a/source/blender/editors/space_outliner/outliner_select.c
+++ b/source/blender/editors/space_outliner/outliner_select.c
@@ -550,6 +550,18 @@ static eOLDrawState tree_element_active_curve(bContext *C,
   return OL_DRAWSEL_NONE;
 }
 
+static eOLDrawState tree_element_active_mesh(bContext *C,
+                                             Scene *UNUSED(scene),
+                                             ViewLayer *UNUSED(view_layer),
+                                             TreeElement *UNUSED(te),
+                                             const eOLSetState set)
+{
+  if (set != OL_SETSEL_NONE) {
+    ED_buttons_set_context(C, BCONTEXT_DATA);
+  }
+  return OL_DRAWSEL_NONE;
+}
+
 static eOLDrawState tree_element_active_world(bContext *C,
                                               Scene *scene,
                                               ViewLayer *UNUSED(sl),
@@ -1094,6 +1106,8 @@ eOLDrawState tree_element_active(bContext *C,
       return tree_element_active_camera(C, tvc->scene, tvc->view_layer, te, 
set);
     case ID_CU:
       return tree_element_active_curve(C, tvc->scene, tvc->view_layer, te, 
set);
+    case ID_ME:
+      return tree_element_active_mesh(C, tvc->scene, tvc->view_layer, te, set);
   }
   return OL_DRAWSEL_NONE;
 }

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to