diff options
author | Sv. Lockal <lockalsash@gmail.com> | 2013-07-30 12:45:45 +0400 |
---|---|---|
committer | Sv. Lockal <lockalsash@gmail.com> | 2013-07-30 12:45:45 +0400 |
commit | 793e17ef6c24dd2ad0831eba4e269b181b0fb800 (patch) | |
tree | 32e21bb5aeae9b8532361cca96c288d5977935a3 /source/blender/editors/space_outliner/outliner_edit.c | |
parent | 7e02d82036c86a1817e3c644d54b4c8abd6f2093 (diff) |
Remove superfluous iterations (caused by typo) and type casts in outliner
This significantly lowers the position of outliner_draw_tree_element in profiler
and partially fixes [#36260] (2,300 Objects Makes Blender Unresponsive)
Diffstat (limited to 'source/blender/editors/space_outliner/outliner_edit.c')
-rw-r--r-- | source/blender/editors/space_outliner/outliner_edit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_outliner/outliner_edit.c b/source/blender/editors/space_outliner/outliner_edit.c index 0161f53e690..cef5fe53407 100644 --- a/source/blender/editors/space_outliner/outliner_edit.c +++ b/source/blender/editors/space_outliner/outliner_edit.c @@ -618,7 +618,7 @@ static int outliner_show_active_exec(bContext *C, wmOperator *UNUSED(op)) te = outliner_find_id(so, &so->tree, (ID *)OBACT); if (te) { /* make te->ys center of view */ - ytop = (int)(te->ys + BLI_rcti_size_y(&v2d->mask) / 2); + ytop = te->ys + BLI_rcti_size_y(&v2d->mask) / 2; if (ytop > 0) ytop = 0; v2d->cur.ymax = (float)ytop; |