Fix cursor display for anchored brushes due to own recent change of
authorAntony Riakiotakis <kalast@gmail.com>
Tue, 5 Mar 2013 20:25:08 +0000 (20:25 +0000)
committerAntony Riakiotakis <kalast@gmail.com>
Tue, 5 Mar 2013 20:25:08 +0000 (20:25 +0000)
paint coordinate system.

source/blender/editors/sculpt_paint/paint_cursor.c

index a45f9a2..bf6ad32 100644 (file)
@@ -590,8 +590,8 @@ static void paint_draw_cursor(bContext *C, int x, int y, void *UNUSED(unused))
 
                if (ups->draw_anchored) {
                        final_radius = ups->anchored_size;
-                       translation[0] = ups->anchored_initial_mouse[0] - vc.ar->winrct.xmin;
-                       translation[1] = ups->anchored_initial_mouse[1] - vc.ar->winrct.ymin;
+                       translation[0] = ups->anchored_initial_mouse[0];
+                       translation[1] = ups->anchored_initial_mouse[1];
                }
        }