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
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2005-08-25 01:12:58 +0400
committerTon Roosendaal <ton@blender.org>2005-08-25 01:12:58 +0400
commitc9f01eefcd3c21da95c7245a6b1f54ceae4024b1 (patch)
treed43383ac4ab91b7880b3dc938e8a95f1c765dae3 /source/blender
parenta51896b5916fa7c17be3941ffe6b99aa335ca14a (diff)
iBug fix #2965
Switching scene in Edit Mode crashed. Accessed the DAG without it being initialized yet.
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/blenkernel/intern/depsgraph.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/depsgraph.c b/source/blender/blenkernel/intern/depsgraph.c
index 37bcf2051d1..c0cfc4afc82 100644
--- a/source/blender/blenkernel/intern/depsgraph.c
+++ b/source/blender/blenkernel/intern/depsgraph.c
@@ -1463,7 +1463,7 @@ void DAG_object_flush_update(Scene *sce, Object *ob, short flag)
{
Base *base;
- if(ob==NULL) return;
+ if(ob==NULL || sce->theDag==NULL) return;
ob->recalc |= flag;
/* all users of this ob->data should be checked */