Reuse local view for UVs for previous commit, thanks to Campbell for the
[blender-staging.git] / source / blender / editors / uvedit / uvedit_draw.c
index 7b674e75525cf68dd6ec39574918e269492b03f3..4c93cfa2cc5209da288bf8c5735201929b8f9359 100644 (file)
@@ -506,7 +506,7 @@ static void draw_uvs_texpaint(SpaceImage *sima, Scene *scene, Object *ob)
                mloopuv_base = mloopuv;
 
                for (a = me->totpoly; a > 0; a--, mpoly++) {
-                       if ((sima->flag & SI_TEXPAINT_FILTER_MATERIAL) && mpoly->mat_nr != ob->actcol - 1)
+                       if ((scene->toolsettings->uv_flag & UV_SHOW_SAME_IMAGE) && mpoly->mat_nr != ob->actcol - 1)
                                continue;
                        glBegin(GL_LINE_LOOP);