Depsgraph: completely move customdata_mask to the ID node.
authorAlexander Gavrilov <angavrilov@gmail.com>
Mon, 3 Dec 2018 15:09:45 +0000 (18:09 +0300)
committerAlexander Gavrilov <angavrilov@gmail.com>
Mon, 3 Dec 2018 15:29:06 +0000 (18:29 +0300)
commitbb16167fd8727a330a97f591398ac0981c76a562
tree3f19f8097a795242f254a3263bbe84ffb250c774
parentfadad895b2f44044b829e7ffe83174d8ecd8a487
Depsgraph: completely move customdata_mask to the ID node.

Move all mask-related fields from Object and OperationDepsNode
to Object_Runtime and IDDepsNode. Auto-apply DEG_TAG_GEOMETRY
if the mask changes after DEG rebuild. Update DEG API and all
code that uses it.

This fixes "source mesh data is not ready" errors from Data
Transfer modifier when parameters are changed in the UI after
the recent mesh_get_eval_final fix.

Reviewers: sergey

Differential Revision: https://developer.blender.org/D4025
22 files changed:
source/blender/blenkernel/intern/DerivedMesh.c
source/blender/blenkernel/intern/data_transfer.c
source/blender/blenloader/intern/readfile.c
source/blender/depsgraph/DEG_depsgraph_build.h
source/blender/depsgraph/DEG_depsgraph_query.h
source/blender/depsgraph/intern/builder/deg_builder.cc
source/blender/depsgraph/intern/builder/deg_builder_nodes.cc
source/blender/depsgraph/intern/builder/deg_builder_nodes.h
source/blender/depsgraph/intern/builder/deg_builder_relations.cc
source/blender/depsgraph/intern/builder/deg_builder_relations.h
source/blender/depsgraph/intern/builder/deg_builder_relations_rig.cc
source/blender/depsgraph/intern/builder/deg_builder_relations_view_layer.cc
source/blender/depsgraph/intern/depsgraph_build.cc
source/blender/depsgraph/intern/depsgraph_query.cc
source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc
source/blender/depsgraph/intern/nodes/deg_node_id.cc
source/blender/depsgraph/intern/nodes/deg_node_id.h
source/blender/depsgraph/intern/nodes/deg_node_operation.cc
source/blender/depsgraph/intern/nodes/deg_node_operation.h
source/blender/makesdna/DNA_object_types.h
source/blender/modifiers/intern/MOD_datatransfer.c
source/blender/modifiers/intern/MOD_shrinkwrap.c