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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2010-02-07 13:00:27 +0300
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2010-02-07 13:00:27 +0300
commitd8c7f743abfdc91a198fdac9b780ff4d9d66e3c8 (patch)
treec3a62d8db4af2f481ba5eb569ddfe95586e8004d /source/blender/blenkernel/BKE_depsgraph.h
parent64d9026144ffed025c9a5490a66e4a651dac8866 (diff)
Depsgraph: fix for old problem where dependencies would not get executed
properly on file loading. Some things get preserved on file save/load, like object matrices and armature poses, but other things need to be remade like derivedmeshes and displists. The latter were not tagged for recalc on load causing them to be made on countall or redraw typically, so not in the right order and dependencies on hidden layer were not done at all. Now these get tagged for recalc and flags flushed on load. There shouldn't be much if any slowdown on opening existing files, if there is it should be fixable.
Diffstat (limited to 'source/blender/blenkernel/BKE_depsgraph.h')
-rw-r--r--source/blender/blenkernel/BKE_depsgraph.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_depsgraph.h b/source/blender/blenkernel/BKE_depsgraph.h
index 44f8238d4d9..ae3e0461390 100644
--- a/source/blender/blenkernel/BKE_depsgraph.h
+++ b/source/blender/blenkernel/BKE_depsgraph.h
@@ -103,6 +103,8 @@ void DAG_scene_sort(struct Scene *sce);
void DAG_scene_update_flags(struct Scene *sce, unsigned int lay);
/* flushes all recalc flags in objects down the dependency tree */
void DAG_scene_flush_update(struct Scene *sce, unsigned int lay, int time);
+ /* tag objects for update on file load */
+void DAG_on_load_update(void);
/* flag all IDs that need recalc because they're animated, influencing
this ID only. only for objects currently */