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
diff options
context:
space:
mode:
authorNicholas Bishop <nicholasbishop@gmail.com>2007-01-16 22:21:24 +0300
committerNicholas Bishop <nicholasbishop@gmail.com>2007-01-16 22:21:24 +0300
commit5c0961dade0f2c62ee27c736ca49e4f910ff3518 (patch)
tree2c67a4fcaa9743fd0596713c080f6b7df52df77c /source/blender/src/retopo.c
parent1e785638f9f6a8a63c591be412b57b3bc672b0ee (diff)
Fix for retopo: xkey and deletekey should remove the active paint line.
Diffstat (limited to 'source/blender/src/retopo.c')
-rw-r--r--source/blender/src/retopo.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/source/blender/src/retopo.c b/source/blender/src/retopo.c
index 11bff82af1d..72b03f42c5c 100644
--- a/source/blender/src/retopo.c
+++ b/source/blender/src/retopo.c
@@ -557,6 +557,18 @@ char retopo_paint(const unsigned short event)
G.scene->toolsettings->retopo_mode= RETOPO_PEN;
allqueue(REDRAWBUTSEDIT, 0);
break;
+ case XKEY:
+ case DELKEY:
+ l= rpd->lines.last;
+ if(l) {
+ BLI_freelistN(&l->points);
+ BLI_freelistN(&l->hitlist);
+ BLI_freelinkN(&rpd->lines, l);
+ if(rpd->nearest.line == l)
+ rpd->nearest.line= NULL;
+ allqueue(REDRAWVIEW3D, 0);
+ }
+ break;
case LEFTMOUSE:
if(!rpd->in_drag) { /* Start new drag */
rpd->in_drag= 1;
@@ -603,6 +615,7 @@ char retopo_paint(const unsigned short event)
case RETOPO_ELLIPSE:
break;
}
+ allqueue(REDRAWVIEW3D, 0);
}
break;
case MIDDLEMOUSE: