[Bf-blender-cvs] [3d0864200d3] master: Cleanup: make outliner_item_do_activate_from_cursor() static.
Bastien Montagne
noreply at git.blender.org
Tue Apr 30 11:34:40 CEST 2019
Commit: 3d0864200d357cac40415db3d9d9df57b45b4bcb
Author: Bastien Montagne
Date: Mon Apr 29 14:49:25 2019 +0200
Branches: master
https://developer.blender.org/rB3d0864200d357cac40415db3d9d9df57b45b4bcb
Cleanup: make outliner_item_do_activate_from_cursor() static.
This function is only used in one place in one file, no point exposing
it in internal header currently...
===================================================================
M source/blender/editors/space_outliner/outliner_intern.h
M source/blender/editors/space_outliner/outliner_select.c
===================================================================
diff --git a/source/blender/editors/space_outliner/outliner_intern.h b/source/blender/editors/space_outliner/outliner_intern.h
index d532a1cbbb8..8211e3005c7 100644
--- a/source/blender/editors/space_outliner/outliner_intern.h
+++ b/source/blender/editors/space_outliner/outliner_intern.h
@@ -236,10 +236,6 @@ eOLDrawState tree_element_active(struct bContext *C,
void outliner_item_do_activate_from_tree_element(
struct bContext *C, TreeElement *te, TreeStoreElem *tselem, bool extend, bool recursive);
-int outliner_item_do_activate_from_cursor(struct bContext *C,
- const int mval[2],
- bool extend,
- bool recursive);
void outliner_item_select(struct SpaceOutliner *soops,
const struct TreeElement *te,
diff --git a/source/blender/editors/space_outliner/outliner_select.c b/source/blender/editors/space_outliner/outliner_select.c
index 459736a730d..6cc147587a5 100644
--- a/source/blender/editors/space_outliner/outliner_select.c
+++ b/source/blender/editors/space_outliner/outliner_select.c
@@ -1297,10 +1297,10 @@ void outliner_item_do_activate_from_tree_element(
*
* May expend/collapse branches or activate items.
* */
-int outliner_item_do_activate_from_cursor(bContext *C,
- const int mval[2],
- bool extend,
- bool recursive)
+static int outliner_item_do_activate_from_cursor(bContext *C,
+ const int mval[2],
+ bool extend,
+ bool recursive)
{
ARegion *ar = CTX_wm_region(C);
SpaceOutliner *soops = CTX_wm_space_outliner(C);
More information about the Bf-blender-cvs
mailing list