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>2013-03-09 19:51:36 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-03-09 19:51:36 +0400
commit2ff48c019d8f1c40749487d1d2bf6010b816bcf9 (patch)
tree3fc6af5a77f11c294e70554ea2a0d6e05b4e756e /source/blender/editors/space_outliner/outliner_edit.c
parent2433404e4b90581fe65c8259e58baeee14259638 (diff)
minor edits to r55134 (recursive outliner select).
- loop over scene bases rather then looping over all objects, then looking up bases. - shuffle checks so slow ones are last. - rather then having own behavior for recursive select, do the regular operation, then apply the result recursively afterwards.
Diffstat (limited to 'source/blender/editors/space_outliner/outliner_edit.c')
-rw-r--r--source/blender/editors/space_outliner/outliner_edit.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/space_outliner/outliner_edit.c b/source/blender/editors/space_outliner/outliner_edit.c
index 78346dc54f0..7c16c8620de 100644
--- a/source/blender/editors/space_outliner/outliner_edit.c
+++ b/source/blender/editors/space_outliner/outliner_edit.c
@@ -242,18 +242,18 @@ static int outliner_item_rename(bContext *C, wmOperator *UNUSED(op), wmEvent *ev
SpaceOops *soops = CTX_wm_space_outliner(C);
TreeElement *te;
float fmval[2];
- int any_renamed = FALSE;
+ bool change = false;
UI_view2d_region_to_view(&ar->v2d, event->mval[0], event->mval[1], fmval, fmval + 1);
for (te = soops->tree.first; te; te = te->next) {
if (do_outliner_item_rename(C, ar, soops, te, fmval)) {
- any_renamed = TRUE;
+ change = true;
break;
}
}
- return any_renamed ? OPERATOR_FINISHED : OPERATOR_PASS_THROUGH;
+ return change ? OPERATOR_FINISHED : OPERATOR_PASS_THROUGH;
}