diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2017-04-04 14:09:17 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2017-04-04 15:31:01 +0300 |
commit | c8cff31922a1e1138929b8ccfdab744b106f8b09 (patch) | |
tree | 1d3bcb9cbc9e6f3c19d1908f9d44295c5cf7640a /source/blender/editors/space_image | |
parent | c87bfb1f7d431a35a69037fd26c0edb925e985bc (diff) |
UV editor using new depsgraph for shadow uv
Diffstat (limited to 'source/blender/editors/space_image')
-rw-r--r-- | source/blender/editors/space_image/CMakeLists.txt | 1 | ||||
-rw-r--r-- | source/blender/editors/space_image/space_image.c | 5 |
2 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/editors/space_image/CMakeLists.txt b/source/blender/editors/space_image/CMakeLists.txt index c60d194b620..0bc09981ba5 100644 --- a/source/blender/editors/space_image/CMakeLists.txt +++ b/source/blender/editors/space_image/CMakeLists.txt @@ -25,6 +25,7 @@ set(INC ../../blenlib ../../blentranslation ../../bmesh + ../../depsgraph ../../imbuf ../../gpu ../../makesdna diff --git a/source/blender/editors/space_image/space_image.c b/source/blender/editors/space_image/space_image.c index ef975c2577d..f1176acfa94 100644 --- a/source/blender/editors/space_image/space_image.c +++ b/source/blender/editors/space_image/space_image.c @@ -50,6 +50,8 @@ #include "BKE_scene.h" #include "BKE_screen.h" +#include "DEG_depsgraph.h" + #include "IMB_imbuf_types.h" #include "ED_image.h" @@ -686,6 +688,7 @@ static void image_main_region_draw(const bContext *C, ARegion *ar) SpaceImage *sima = CTX_wm_space_image(C); Object *obact = CTX_data_active_object(C); Object *obedit = CTX_data_edit_object(C); + Depsgraph *depsgraph = CTX_data_depsgraph(C); Mask *mask = NULL; bool curve = false; Scene *scene = CTX_data_scene(C); @@ -725,7 +728,7 @@ static void image_main_region_draw(const bContext *C, ARegion *ar) ED_region_draw_cb_draw(C, ar, REGION_DRAW_PRE_VIEW); - ED_uvedit_draw_main(sima, ar, scene, sl, obedit, obact); + ED_uvedit_draw_main(sima, ar, scene, sl, obedit, obact, depsgraph); /* check for mask (delay draw) */ if (ED_space_image_show_uvedit(sima, obedit)) { |