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.
This commit is contained in:
Sergey Sharybin
2010-12-20 17:42:17 +00:00
parent fb586da690
commit 28db3053fd

View File

@@ -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) {