[Bf-blender-cvs] [3cbf9956e44] soc-2019-outliner: Outliner: small cleanup for show active

Nathan Craddock noreply at git.blender.org
Wed Jul 31 06:11:51 CEST 2019


Commit: 3cbf9956e440a3f21b54d92bcd53a271eb1c2408
Author: Nathan Craddock
Date:   Tue Jul 30 19:23:27 2019 -0600
Branches: soc-2019-outliner
https://developer.blender.org/rB3cbf9956e440a3f21b54d92bcd53a271eb1c2408

Outliner: small cleanup for show active

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

M	source/blender/editors/space_outliner/outliner_edit.c

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

diff --git a/source/blender/editors/space_outliner/outliner_edit.c b/source/blender/editors/space_outliner/outliner_edit.c
index 4efdd81c161..965d7168d00 100644
--- a/source/blender/editors/space_outliner/outliner_edit.c
+++ b/source/blender/editors/space_outliner/outliner_edit.c
@@ -1325,7 +1325,7 @@ static int outliner_show_active_exec(bContext *C, wmOperator *UNUSED(op))
 
     /* Center view on first element found */
     int size_y = BLI_rcti_size_y(&v2d->mask) + 1;
-    int y_min = MIN2(ar->v2d.tot.ymin, v2d->cur.ymin);
+    int y_min = MIN2(v2d->tot.ymin, v2d->cur.ymin);
     int ytop = active_element->ys + size_y / 2;
 
     /* make te->ys center of view  keeping element within scroll limits */



More information about the Bf-blender-cvs mailing list