diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-02-06 09:11:46 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-02-06 10:03:28 +0300 |
commit | 269ed0a770bf3627ba1e21d87d3d748c0765a531 (patch) | |
tree | 59c2bfd457dfd069f35c0700ad5dfe0ee982299b /source/blender/editors/space_outliner/outliner_draw.c | |
parent | 021bf4c2fea0653a4a4511d6a54a6b130d6c5acc (diff) |
Object Mode: pass eval_ctx in outliner functions
Diffstat (limited to 'source/blender/editors/space_outliner/outliner_draw.c')
-rw-r--r-- | source/blender/editors/space_outliner/outliner_draw.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/space_outliner/outliner_draw.c b/source/blender/editors/space_outliner/outliner_draw.c index 1478792b38b..82441536699 100644 --- a/source/blender/editors/space_outliner/outliner_draw.c +++ b/source/blender/editors/space_outliner/outliner_draw.c @@ -1893,6 +1893,8 @@ static void outliner_draw_restrictcols(ARegion *ar) void draw_outliner(const bContext *C) { + EvaluationContext eval_ctx; + CTX_data_eval_ctx(C, &eval_ctx); Main *mainvar = CTX_data_main(C); Scene *scene = CTX_data_scene(C); ViewLayer *view_layer = CTX_data_view_layer(C); @@ -1904,7 +1906,7 @@ void draw_outliner(const bContext *C) TreeElement *te_edit = NULL; bool has_restrict_icons; - outliner_build_tree(mainvar, scene, view_layer, soops, ar); // always + outliner_build_tree(mainvar, &eval_ctx, scene, view_layer, soops, ar); // always /* get extents of data */ outliner_height(soops, &soops->tree, &sizey); |