Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorNicholas Bishop <nicholasbishop@gmail.com>2007-01-16 10:35:42 +0300
committerNicholas Bishop <nicholasbishop@gmail.com>2007-01-16 10:35:42 +0300
commit6f976db9f72f49fa15d92fa8f69f24c311ffb232 (patch)
tree18c03f1edcccd204e218c0e914b642f253b9703c /source
parentceee0697634ab5d134dfafef1f96dc6976a1076a (diff)
Fix for bug #5628, sculpt - ghost of circle left when going from 3d view to buttons window. Added a check to insure brush is inside the current view3d before drawing.
Diffstat (limited to 'source')
-rw-r--r--source/blender/src/drawview.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/source/blender/src/drawview.c b/source/blender/src/drawview.c
index ff392984285..0e6ef4a17ab 100644
--- a/source/blender/src/drawview.c
+++ b/source/blender/src/drawview.c
@@ -2832,9 +2832,14 @@ void drawview3dspace(ScrArea *sa, void *spacedata)
}
}
else if(sculpt_data()->draw_flag & SCULPTDRAW_BRUSH) {
- short c[2];
- getmouseco_areawin(c);
- fdrawXORcirc((float)c[0], (float)c[1], sculptmode_brush()->size);
+ short csc[2], car[2];
+ getmouseco_sc(csc);
+ getmouseco_areawin(car);
+ if(csc[0] > v3d->area->winrct.xmin &&
+ csc[1] > v3d->area->winrct.ymin &&
+ csc[0] < v3d->area->winrct.xmax &&
+ csc[1] < v3d->area->winrct.ymax)
+ fdrawXORcirc((float)car[0], (float)car[1], sculptmode_brush()->size);
}
}
retopo_draw_paint_lines();