diff options
Diffstat (limited to 'source/blender/editors/mesh/mesh_navmesh.c')
-rw-r--r-- | source/blender/editors/mesh/mesh_navmesh.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/editors/mesh/mesh_navmesh.c b/source/blender/editors/mesh/mesh_navmesh.c index bd5f4b5fe68..b8ace26991e 100644 --- a/source/blender/editors/mesh/mesh_navmesh.c +++ b/source/blender/editors/mesh/mesh_navmesh.c @@ -459,12 +459,14 @@ static int create_navmesh_exec(bContext *C, wmOperator *op) MEM_freeN(verts); MEM_freeN(tris); + + return OPERATOR_FINISHED; } else { BKE_report(op->reports, RPT_ERROR, "No mesh objects found"); - } - return OPERATOR_FINISHED; + return OPERATOR_CANCELLED; + } } void MESH_OT_navmesh_make(wmOperatorType *ot) |