Bugfix #25235
authorTon Roosendaal <ton@blender.org>
Wed, 15 Dec 2010 19:21:02 +0000 (19:21 +0000)
committerTon Roosendaal <ton@blender.org>
Wed, 15 Dec 2010 19:21:02 +0000 (19:21 +0000)
Image Editor: paint mode, use clone image, always showed.
Now it hides clone when paint is disabled.

source/blender/editors/space_image/image_draw.c

index 55f27cbca62027c53eb0ae6efd64395e52eca728..6e7af2cb196bd97e11a310cb3e1a0558cd13a3b2 100644 (file)
@@ -664,7 +664,8 @@ void draw_image_main(SpaceImage *sima, ARegion *ar, Scene *scene)
                draw_image_buffer(sima, ar, scene, ima, ibuf, 0.0f, 0.0f, zoomx, zoomy);
 
        /* paint helpers */
-       draw_image_paint_helpers(ar, scene, zoomx, zoomy);
+       if(sima->flag & SI_DRAWTOOL)
+               draw_image_paint_helpers(ar, scene, zoomx, zoomy);
 
 
        /* XXX integrate this code */