Fix #19533: Autoupdate check box not working for UV/Image Editor.
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Wed, 4 Nov 2009 09:22:16 +0000 (09:22 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Wed, 4 Nov 2009 09:22:16 +0000 (09:22 +0000)
source/blender/editors/transform/transform.c

index 2a2753436c23e4ae0f2c3b331eeeedb4c915db30..7467f7880af0f41858e250f89a116a9ef4e90a30 100644 (file)
@@ -330,13 +330,9 @@ static void viewRedrawForce(bContext *C, TransInfo *t)
        }
        else if (t->spacetype==SPACE_IMAGE) {
                // XXX how to deal with lock?
-#if 0
                SpaceImage *sima= (SpaceImage*)t->sa->spacedata.first;
-               if(sima->lock) force_draw_plus(SPACE_VIEW3D, 0);
-               else force_draw(0);
-#endif
-
-               WM_event_add_notifier(C, NC_GEOM|ND_DATA, t->obedit->data);
+               if(sima->lock) WM_event_add_notifier(C, NC_GEOM|ND_DATA, t->obedit->data);
+               else ED_area_tag_redraw(t->sa);
        }
 }