diff options
author | Nicholas Bishop <nicholasbishop@gmail.com> | 2007-01-01 01:18:21 +0300 |
---|---|---|
committer | Nicholas Bishop <nicholasbishop@gmail.com> | 2007-01-01 01:18:21 +0300 |
commit | a8cb4a7860490e1a05b5f03d02b04ca73a7be79e (patch) | |
tree | 887ed6a55752f502c967c76b55272a8986352e41 /source/blender/src/retopo.c | |
parent | 0909fa71eaba661017d8d0902fd0d4d6e2163911 (diff) |
Fixed bug #5557, retopo - toggling fullscreen shifts painted lines
Diffstat (limited to 'source/blender/src/retopo.c')
-rw-r--r-- | source/blender/src/retopo.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/source/blender/src/retopo.c b/source/blender/src/retopo.c index 9c23b86cbc8..5b613880fb5 100644 --- a/source/blender/src/retopo.c +++ b/source/blender/src/retopo.c @@ -60,6 +60,7 @@ #include "BLI_blenlib.h" #include "BLI_editVert.h" +#include "BSE_drawview.h" #include "BSE_edit.h" #include "BSE_view.h" @@ -430,6 +431,25 @@ void retopo_paint_view_update(struct View3D *v3d) } } +void retopo_force_update() +{ + RetopoPaintData *rpd= get_retopo_paint_data(); + + if(rpd) { + View3D *vd= rpd->paint_v3d; + + if(vd) { + if(vd->depths) vd->depths->damaged= 1; + retopo_queue_updates(vd); + if(retopo_mesh_paint_check() && vd->retopo_view_data) { + /* Force redraw */ + drawview3dspace(vd->area, vd); + retopo_paint_view_update(vd); + } + } + } +} + /* Returns 1 if event should be processed by caller, 0 otherwise */ char retopo_paint(const unsigned short event) { |