From a5bb91839219532d133d5561c23120fae6b73cff Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Tue, 20 Mar 2018 16:51:33 +0100 Subject: Memory allocator: Clarify consistency check function Also make it to return truth when everything is good and false otherwise. --- source/blender/blenkernel/intern/scene.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source') diff --git a/source/blender/blenkernel/intern/scene.c b/source/blender/blenkernel/intern/scene.c index 9b3299bdbc5..60cf4964980 100644 --- a/source/blender/blenkernel/intern/scene.c +++ b/source/blender/blenkernel/intern/scene.c @@ -1966,6 +1966,10 @@ void BKE_scene_update_for_newframe_ex(EvaluationContext *eval_ctx, Main *bmain, (void) do_invisible_flush; #endif + if (!MEM_consistency_check()) { + abort(); + } + DAG_editors_update_pre(bmain, sce, true); /* keep this first */ -- cgit v1.2.3