diff options
-rw-r--r-- | source/blender/editors/curve/editcurve.c | 2 | ||||
-rw-r--r-- | source/blender/editors/space_view3d/view3d_edit.c | 10 | ||||
-rw-r--r-- | source/tests/bl_run_operators.py | 3 |
3 files changed, 10 insertions, 5 deletions
diff --git a/source/blender/editors/curve/editcurve.c b/source/blender/editors/curve/editcurve.c index ce0881b2e11..d2eab3e8dea 100644 --- a/source/blender/editors/curve/editcurve.c +++ b/source/blender/editors/curve/editcurve.c @@ -6245,7 +6245,7 @@ static int curve_delete_exec(bContext *C, wmOperator *op) } static EnumPropertyItem curve_delete_type_items[] = { - {CURVE_VERTEX, "VERTICES", 0, "Vertices", ""}, + {CURVE_VERTEX, "VERT", 0, "Vertices", ""}, {CURVE_SEGMENT, "SEGMENT", 0, "Segments", ""}, {0, NULL, 0, NULL, NULL} }; diff --git a/source/blender/editors/space_view3d/view3d_edit.c b/source/blender/editors/space_view3d/view3d_edit.c index d0d1a48e832..4765ff6364a 100644 --- a/source/blender/editors/space_view3d/view3d_edit.c +++ b/source/blender/editors/space_view3d/view3d_edit.c @@ -1012,9 +1012,13 @@ static int view3d_camera_user_poll(bContext *C) static int view3d_lock_poll(bContext *C) { View3D *v3d = CTX_wm_view3d(C); - RegionView3D *rv3d = CTX_wm_region_view3d(C); - - return ED_view3d_offset_lock_check(v3d, rv3d); + if (v3d) { + RegionView3D *rv3d = CTX_wm_region_view3d(C); + if (rv3d) { + return ED_view3d_offset_lock_check(v3d, rv3d); + } + } + return false; } static int viewrotate_cancel(bContext *C, wmOperator *op) diff --git a/source/tests/bl_run_operators.py b/source/tests/bl_run_operators.py index effc06cd15f..ad8a6919c91 100644 --- a/source/tests/bl_run_operators.py +++ b/source/tests/bl_run_operators.py @@ -342,7 +342,8 @@ def ctx_editmode_curves(): def ctx_editmode_curves_empty(): bpy.ops.curve.primitive_nurbs_circle_add() bpy.ops.object.mode_set(mode='EDIT') - bpy.ops.curve.delete(type='ALL') + bpy.ops.curve.select_all(action='SELECT') + bpy.ops.curve.delete(type='VERT') def ctx_editmode_surface(): |