Fix #26573, #26574 and #26551: objects on layers not visible on load or undo
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Wed, 23 Mar 2011 14:06:44 +0000 (14:06 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Wed, 23 Mar 2011 14:06:44 +0000 (14:06 +0000)
commitedc5cf1f96f0f0a0eff65a4aa574dfae9c2fc606
tree5ca4482dd77deeb33660e574bca88fedd268b259
parent72fe34efb2a9787598fe10c3aefae3f523bd036f
Fix #26573, #26574 and #26551: objects on layers not visible on load or undo
restore, would not get their dependencies updated when they became visible.
It happend with a shrinkwrap modifier in these reports, but could happen with
other modifiers too.

Now we keep track of which layers have ever been updated since load, and tag
objects on them to be recalculated when they become visible.
source/blender/blenkernel/BKE_depsgraph.h
source/blender/blenkernel/intern/blender.c
source/blender/blenkernel/intern/depsgraph.c
source/blender/blenloader/intern/readfile.c
source/blender/makesdna/DNA_scene_types.h
source/blender/makesrna/intern/rna_scene.c
source/blender/makesrna/intern/rna_space.c
source/blender/windowmanager/intern/wm_files.c
source/creator/creator.c