diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2014-11-14 16:06:29 +0300 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2014-11-14 16:06:39 +0300 |
commit | 8d5d6de7615c79a79a0ab3fa95319650ebe89206 (patch) | |
tree | 171b276b6223bc9a4129e62d773dff5a17c8e5ca /source/blender/editors/space_image/space_image.c | |
parent | bed09959765ef5f09ff81145636797d45fbc1111 (diff) |
Reuse local view for UVs for previous commit, thanks to Campbell for the
suggestion.
Also minor compile fix after viewport patch
Diffstat (limited to 'source/blender/editors/space_image/space_image.c')
-rw-r--r-- | source/blender/editors/space_image/space_image.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/space_image/space_image.c b/source/blender/editors/space_image/space_image.c index 770582f4afa..5dc9af2de84 100644 --- a/source/blender/editors/space_image/space_image.c +++ b/source/blender/editors/space_image/space_image.c @@ -33,6 +33,7 @@ #include "DNA_meshdata_types.h" #include "DNA_object_types.h" #include "DNA_scene_types.h" +#include "DNA_image_types.h" #include "MEM_guardedalloc.h" @@ -807,7 +808,7 @@ static void image_main_area_listener(bScreen *UNUSED(sc), ScrArea *sa, ARegion * if (wmn->data == ND_SHADING_LINKS) { SpaceImage *sima = sa->spacedata.first; - if (sima->flag & SI_TEXPAINT_FILTER_MATERIAL) + if (sima->iuser.scene && (sima->iuser.scene->toolsettings->uv_flag & UV_SHOW_SAME_IMAGE)) ED_region_tag_redraw(ar); } break; |