diff options
Diffstat (limited to 'source/blender/bmesh/intern/bmesh_mesh.c')
-rw-r--r-- | source/blender/bmesh/intern/bmesh_mesh.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source/blender/bmesh/intern/bmesh_mesh.c b/source/blender/bmesh/intern/bmesh_mesh.c index 097c87ca1c6..7d8e55347f5 100644 --- a/source/blender/bmesh/intern/bmesh_mesh.c +++ b/source/blender/bmesh/intern/bmesh_mesh.c @@ -51,14 +51,16 @@ int bm_mesh_allocsize_default[4] = {512, 512, 2048, 512}; /* bmesh_error stub */ -void bmesh_error(void) +void _bmesh_error(const char *at, const char *func) { - printf("BM modelling error!\n"); + fprintf(stderr, "BM modelling error '%s', func '%s'!\n", at, func); +#ifdef WITH_ASSERT_ABORT /* This placeholder assert makes modelling errors easier to catch * in the debugger, until bmesh_error is replaced with something * better. */ - BLI_assert(0); + abort(); +#endif } static void bmesh_mempool_init(BMesh *bm, const int allocsize[4]) |