diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-03-20 18:51:33 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-03-20 18:51:33 +0300 |
commit | a5bb91839219532d133d5561c23120fae6b73cff (patch) | |
tree | 415809f3b321fce4f1a268138225551d4e92114b /source/blender/blenkernel | |
parent | 4f97f585135b0e040281e95ca59f6d4a9472d637 (diff) |
Memory allocator: Clarify consistency check function
Also make it to return truth when everything is good and
false otherwise.
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r-- | source/blender/blenkernel/intern/scene.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 */ |