Fix for crash on bpy.ops.curve.vertex_add/bpy.ops.curve.extrude
authorSergey Sharybin <sergey.vfx@gmail.com>
Tue, 15 Jun 2010 09:55:54 +0000 (09:55 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Tue, 15 Jun 2010 09:55:54 +0000 (09:55 +0000)
Removed view3d_operator_needs_opengl from addvert_Nurb, which is unneeded here

source/blender/editors/curve/editcurve.c

index 1b140276c221e72d8ca1f96f5d5adcc1c0cf553b..7e8154f9381b0ac097f85b91a40f295507ac75ce 100644 (file)
@@ -3414,7 +3414,6 @@ static int addvert_Nurb(bContext *C, short mode, float location[3])
        copy_m3_m4(mat, obedit->obmat);
        invert_m3_m3(imat,mat);
 
-       view3d_operator_needs_opengl(C);
        findselectedNurbvert(editnurb, &nu, &bezt, &bp);
        if(bezt==0 && bp==0) return OPERATOR_CANCELLED;