diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2010-12-20 20:42:17 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2010-12-20 20:42:17 +0300 |
commit | 28db3053fd762888f32d3c74246faa8080416e1d (patch) | |
tree | 08daeff2368cac2510317be9f8073e81ee771dea /source/blender/editors/curve | |
parent | fb586da6904c352d9f05197ad3c87b5331b77e25 (diff) |
Fix for last own commit: missed mode check in addvert_Nurb, so
blender was crashing when user tries to extrude (with e-button)
when nothing was selected.
Diffstat (limited to 'source/blender/editors/curve')
-rw-r--r-- | source/blender/editors/curve/editcurve.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/curve/editcurve.c b/source/blender/editors/curve/editcurve.c index 18f0e1e35ed..0857a3e9518 100644 --- a/source/blender/editors/curve/editcurve.c +++ b/source/blender/editors/curve/editcurve.c @@ -4337,7 +4337,7 @@ static int addvert_Nurb(bContext *C, short mode, float location[3]) findselectedNurbvert(&editnurb->nurbs, &nu, &bezt, &bp); if ((nu == NULL) || (nu->type==CU_BEZIER && bezt==NULL) || (nu->type!=CU_BEZIER && bp==NULL)) { - if(cu->actnu >= 0) { + if(cu->actnu >= 0 && mode!='e') { nu= BLI_findlink(&editnurb->nurbs, cu->actnu); if(nu->type==CU_BEZIER) { |