Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2018-03-20 18:51:33 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2018-03-20 18:51:33 +0300
commita5bb91839219532d133d5561c23120fae6b73cff (patch)
tree415809f3b321fce4f1a268138225551d4e92114b /source
parent4f97f585135b0e040281e95ca59f6d4a9472d637 (diff)
Memory allocator: Clarify consistency check function
Also make it to return truth when everything is good and false otherwise.
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenkernel/intern/scene.c4
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 */