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:
authorNathan Craddock <nzcraddock@gmail.com>2020-03-07 21:19:39 +0300
committerNathan Craddock <nzcraddock@gmail.com>2020-03-07 21:26:02 +0300
commit9867a82072bb7d4394cbe8679b6c73d4ae209dbe (patch)
tree3cf4d622f8cdf8d3b395ff9d526c9ffdcf10f7dc /source/blender/editors/space_outliner/outliner_dragdrop.c
parent6b49a9db524968acd5ba0aab2b294ecfbef24ef8 (diff)
Cleanup: Outliner: Remove unused parameter
Searching back in the outliner did not require the unused SpaceOutliner parameter.
Diffstat (limited to 'source/blender/editors/space_outliner/outliner_dragdrop.c')
-rw-r--r--source/blender/editors/space_outliner/outliner_dragdrop.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/editors/space_outliner/outliner_dragdrop.c b/source/blender/editors/space_outliner/outliner_dragdrop.c
index fbf319bea37..32ead9e8c3f 100644
--- a/source/blender/editors/space_outliner/outliner_dragdrop.c
+++ b/source/blender/editors/space_outliner/outliner_dragdrop.c
@@ -237,7 +237,7 @@ static TreeElement *outliner_drop_insert_collection_find(bContext *C,
/* ******************** Parent Drop Operator *********************** */
-static bool parent_drop_allowed(SpaceOutliner *soops, TreeElement *te, Object *potential_child)
+static bool parent_drop_allowed(TreeElement *te, Object *potential_child)
{
TreeStoreElem *tselem = TREESTORE(te);
if (te->idcode != ID_OB || tselem->type != 0) {
@@ -257,7 +257,7 @@ static bool parent_drop_allowed(SpaceOutliner *soops, TreeElement *te, Object *p
}
/* check that parent/child are both in the same scene */
- Scene *scene = (Scene *)outliner_search_back(soops, te, ID_SCE);
+ Scene *scene = (Scene *)outliner_search_back(te, ID_SCE);
/* currently outliner organized in a way that if there's no parent scene
* element for object it means that all displayed objects belong to
@@ -316,7 +316,7 @@ static bool parent_drop_poll(bContext *C,
return false;
}
- if (parent_drop_allowed(soops, te, potential_child)) {
+ if (parent_drop_allowed(te, potential_child)) {
TREESTORE(te)->flag |= TSE_DRAG_INTO;
ED_region_tag_redraw_no_rebuild(CTX_wm_region(C));
return true;
@@ -332,7 +332,7 @@ static void parent_drop_set_parents(
SpaceOutliner *soops = CTX_wm_space_outliner(C);
TreeElement *te = outliner_find_id(soops, &soops->tree, &parent->id);
- Scene *scene = (Scene *)outliner_search_back(soops, te, ID_SCE);
+ Scene *scene = (Scene *)outliner_search_back(te, ID_SCE);
if (scene == NULL) {
/* currently outliner organized in a way, that if there's no parent scene