bugfix [#25238] Render image window edits UV's
[blender.git] / source / blender / editors / space_image / space_image.c
index 58ae3d0df87c39ab99dd2b6e2e52d3467a1b7fed..8b8772c6e286af8eeee036cad7a44483f1a22f9b 100644 (file)
@@ -265,11 +265,9 @@ int ED_space_image_show_paint(SpaceImage *sima)
 
 int ED_space_image_show_uvedit(SpaceImage *sima, Object *obedit)
 {
-       if(ED_space_image_show_render(sima))
-               return 0;
-       if(ED_space_image_show_paint(sima))
+       if(sima && (ED_space_image_show_render(sima) || ED_space_image_show_paint(sima)))
                return 0;
-       
+
        if(obedit && obedit->type == OB_MESH) {
                EditMesh *em = BKE_mesh_get_editmesh(obedit->data);
                int ret;