Depsgraph: New dependency graph integration commit
authorSergey Sharybin <sergey.vfx@gmail.com>
Tue, 12 May 2015 10:05:57 +0000 (15:05 +0500)
committerSergey Sharybin <sergey.vfx@gmail.com>
Tue, 12 May 2015 11:06:37 +0000 (16:06 +0500)
commitbac735380189c63d2b8824cba8e0398bb35e9af2
treed9bc3e73a89520ef7e23782419d880964d1a4fb7
parenta09341469ee3874a0874492a7dcad79c2b99179a
Depsgraph: New dependency graph integration commit

This commit integrates the work done so far on the new dependency graph system,
where goal was to replace legacy depsgraph with the new one, supporting loads of
neat features like:

- More granular dependency relation nature, which solves issues with fake cycles
  in the dependencies.

- Move towards all-animatable, by better integration of drivers into the system.

- Lay down some basis for upcoming copy-on-write, overrides and so on.

The new system is living side-by-side with the previous one and disabled by
default, so nothing will become suddenly broken. The way to enable new depsgraph
is to pass `--new-depsgraph` command line argument.

It's a bit early to consider the system production-ready, there are some TODOs
and issues were discovered during the merge period, they'll be addressed ASAP.
But it's important to merge, because it's the only way to attract artists to
really start testing this system.

There are number of assorted documents related on the design of the new system:

* http://wiki.blender.org/index.php/User:Aligorith/GSoC2013_Depsgraph#Design_Documents
* http://wiki.blender.org/index.php/User:Nazg-gul/DependencyGraph

There are also some user-related information online:

* http://code.blender.org/2015/02/blender-dependency-graph-branch-for-users/
* http://code.blender.org/2015/03/more-dependency-graph-tricks/

Kudos to everyone who was involved into the project:

- Joshua "Aligorith" Leung -- design specification, initial code
- Lukas "lukas_t" Toenne -- integrating code into blender, with further fixes
- Sergey "Sergey" "Sharybin" -- some mocking around, trying to wrap up the
  project and so
- Bassam "slikdigit" Kurdali -- stressing the new system, reporting all the
  issues and recording/writing documentation.
- Everyone else who i forgot to mention here :)
133 files changed:
CMakeLists.txt
build_files/cmake/macros.cmake
build_files/scons/tools/Blender.py
build_files/scons/tools/btools.py
source/blender/CMakeLists.txt
source/blender/SConscript
source/blender/blenkernel/BKE_depsgraph.h
source/blender/blenkernel/BKE_modifier.h
source/blender/blenkernel/CMakeLists.txt
source/blender/blenkernel/SConscript
source/blender/blenkernel/intern/action.c
source/blender/blenkernel/intern/armature_update.c
source/blender/blenkernel/intern/depsgraph.c
source/blender/blenkernel/intern/library.c
source/blender/blenkernel/intern/mesh.c
source/blender/blenkernel/intern/object_update.c
source/blender/blenkernel/intern/scene.c
source/blender/blenloader/intern/readfile.c
source/blender/depsgraph/CMakeLists.txt [new file with mode: 0644]
source/blender/depsgraph/DEG_depsgraph.h [new file with mode: 0644]
source/blender/depsgraph/DEG_depsgraph_build.h [new file with mode: 0644]
source/blender/depsgraph/DEG_depsgraph_debug.h [new file with mode: 0644]
source/blender/depsgraph/DEG_depsgraph_query.h [new file with mode: 0644]
source/blender/depsgraph/SConscript [new file with mode: 0644]
source/blender/depsgraph/intern/depsgraph.cc [new file with mode: 0644]
source/blender/depsgraph/intern/depsgraph.h [new file with mode: 0644]
source/blender/depsgraph/intern/depsgraph_build.cc [new file with mode: 0644]
source/blender/depsgraph/intern/depsgraph_build.h [new file with mode: 0644]
source/blender/depsgraph/intern/depsgraph_build_nodes.cc [new file with mode: 0644]
source/blender/depsgraph/intern/depsgraph_build_relations.cc [new file with mode: 0644]
source/blender/depsgraph/intern/depsgraph_debug.cc [new file with mode: 0644]
source/blender/depsgraph/intern/depsgraph_debug.h [new file with mode: 0644]
source/blender/depsgraph/intern/depsgraph_eval.cc [new file with mode: 0644]
source/blender/depsgraph/intern/depsgraph_intern.h [new file with mode: 0644]
source/blender/depsgraph/intern/depsgraph_query.cc [new file with mode: 0644]
source/blender/depsgraph/intern/depsgraph_queue.cc [new file with mode: 0644]
source/blender/depsgraph/intern/depsgraph_queue.h [new file with mode: 0644]
source/blender/depsgraph/intern/depsgraph_tag.cc [new file with mode: 0644]
source/blender/depsgraph/intern/depsgraph_type_defines.cc [new file with mode: 0644]
source/blender/depsgraph/intern/depsgraph_types.h [new file with mode: 0644]
source/blender/depsgraph/intern/depsnode.cc [new file with mode: 0644]
source/blender/depsgraph/intern/depsnode.h [new file with mode: 0644]
source/blender/depsgraph/intern/depsnode_component.cc [new file with mode: 0644]
source/blender/depsgraph/intern/depsnode_component.h [new file with mode: 0644]
source/blender/depsgraph/intern/depsnode_opcodes.h [new file with mode: 0644]
source/blender/depsgraph/intern/depsnode_operation.cc [new file with mode: 0644]
source/blender/depsgraph/intern/depsnode_operation.h [new file with mode: 0644]
source/blender/depsgraph/util/depsgraph_util_cycle.cc [new file with mode: 0644]
source/blender/depsgraph/util/depsgraph_util_cycle.h [new file with mode: 0644]
source/blender/depsgraph/util/depsgraph_util_function.h [new file with mode: 0644]
source/blender/depsgraph/util/depsgraph_util_hash.h [new file with mode: 0644]
source/blender/depsgraph/util/depsgraph_util_map.h [new file with mode: 0644]
source/blender/depsgraph/util/depsgraph_util_pchanmap.cc [new file with mode: 0644]
source/blender/depsgraph/util/depsgraph_util_pchanmap.h [new file with mode: 0644]
source/blender/depsgraph/util/depsgraph_util_set.h [new file with mode: 0644]
source/blender/depsgraph/util/depsgraph_util_transitive.cc [new file with mode: 0644]
source/blender/depsgraph/util/depsgraph_util_transitive.h [new file with mode: 0644]
source/blender/editors/space_view3d/CMakeLists.txt
source/blender/editors/space_view3d/SConscript
source/blender/editors/space_view3d/space_view3d.c
source/blender/editors/transform/CMakeLists.txt
source/blender/editors/transform/SConscript
source/blender/editors/transform/transform_conversions.c
source/blender/makesdna/DNA_scene_types.h
source/blender/makesrna/SConscript
source/blender/makesrna/intern/CMakeLists.txt
source/blender/makesrna/intern/SConscript
source/blender/makesrna/intern/makesrna.c
source/blender/makesrna/intern/rna_depsgraph.c [new file with mode: 0644]
source/blender/makesrna/intern/rna_internal.h
source/blender/makesrna/intern/rna_object_api.c
source/blender/makesrna/intern/rna_scene.c
source/blender/modifiers/CMakeLists.txt
source/blender/modifiers/SConscript
source/blender/modifiers/intern/MOD_armature.c
source/blender/modifiers/intern/MOD_array.c
source/blender/modifiers/intern/MOD_bevel.c
source/blender/modifiers/intern/MOD_boolean.c
source/blender/modifiers/intern/MOD_build.c
source/blender/modifiers/intern/MOD_cast.c
source/blender/modifiers/intern/MOD_cloth.c
source/blender/modifiers/intern/MOD_collision.c
source/blender/modifiers/intern/MOD_correctivesmooth.c
source/blender/modifiers/intern/MOD_curve.c
source/blender/modifiers/intern/MOD_datatransfer.c
source/blender/modifiers/intern/MOD_decimate.c
source/blender/modifiers/intern/MOD_displace.c
source/blender/modifiers/intern/MOD_dynamicpaint.c
source/blender/modifiers/intern/MOD_edgesplit.c
source/blender/modifiers/intern/MOD_explode.c
source/blender/modifiers/intern/MOD_fluidsim.c
source/blender/modifiers/intern/MOD_hook.c
source/blender/modifiers/intern/MOD_laplaciandeform.c
source/blender/modifiers/intern/MOD_laplaciansmooth.c
source/blender/modifiers/intern/MOD_lattice.c
source/blender/modifiers/intern/MOD_mask.c
source/blender/modifiers/intern/MOD_meshcache.c
source/blender/modifiers/intern/MOD_meshdeform.c
source/blender/modifiers/intern/MOD_mirror.c
source/blender/modifiers/intern/MOD_multires.c
source/blender/modifiers/intern/MOD_none.c
source/blender/modifiers/intern/MOD_normal_edit.c
source/blender/modifiers/intern/MOD_ocean.c
source/blender/modifiers/intern/MOD_particleinstance.c
source/blender/modifiers/intern/MOD_particlesystem.c
source/blender/modifiers/intern/MOD_remesh.c
source/blender/modifiers/intern/MOD_screw.c
source/blender/modifiers/intern/MOD_shapekey.c
source/blender/modifiers/intern/MOD_shrinkwrap.c
source/blender/modifiers/intern/MOD_simpledeform.c
source/blender/modifiers/intern/MOD_skin.c
source/blender/modifiers/intern/MOD_smoke.c
source/blender/modifiers/intern/MOD_smooth.c
source/blender/modifiers/intern/MOD_softbody.c
source/blender/modifiers/intern/MOD_solidify.c
source/blender/modifiers/intern/MOD_subsurf.c
source/blender/modifiers/intern/MOD_surface.c
source/blender/modifiers/intern/MOD_triangulate.c
source/blender/modifiers/intern/MOD_util.h
source/blender/modifiers/intern/MOD_uvproject.c
source/blender/modifiers/intern/MOD_uvwarp.c
source/blender/modifiers/intern/MOD_warp.c
source/blender/modifiers/intern/MOD_wave.c
source/blender/modifiers/intern/MOD_weightvgedit.c
source/blender/modifiers/intern/MOD_weightvgmix.c
source/blender/modifiers/intern/MOD_weightvgproximity.c
source/blender/modifiers/intern/MOD_wireframe.c
source/blender/render/CMakeLists.txt
source/blender/render/SConscript
source/blender/render/intern/source/pipeline.c
source/blenderplayer/CMakeLists.txt
source/creator/CMakeLists.txt
source/creator/creator.c