Changeset View
Changeset View
Standalone View
Standalone View
source/blender/depsgraph/intern/builder/deg_builder_relations.cc
| Show First 20 Lines • Show All 2,219 Lines • ▼ Show 20 Lines | if (comp_node->type == DEG_NODE_TYPE_COPY_ON_WRITE) { | ||||
| /* Copy-on-write component never depends on itself. */ | /* Copy-on-write component never depends on itself. */ | ||||
| continue; | continue; | ||||
| } | } | ||||
| if (!comp_node->depends_on_cow()) { | if (!comp_node->depends_on_cow()) { | ||||
| /* Component explicitly requests to not add relation. */ | /* Component explicitly requests to not add relation. */ | ||||
| continue; | continue; | ||||
| } | } | ||||
| int rel_flag = DEPSREL_FLAG_NO_FLUSH; | int rel_flag = DEPSREL_FLAG_NO_FLUSH; | ||||
| if (id_type == ID_ME && comp_node->type == DEG_NODE_TYPE_GEOMETRY) { | if (ELEM(id_type, ID_ME, ID_CU, ID_MB, ID_LT) && comp_node->type == DEG_NODE_TYPE_GEOMETRY) { | ||||
| rel_flag &= ~DEPSREL_FLAG_NO_FLUSH; | rel_flag &= ~DEPSREL_FLAG_NO_FLUSH; | ||||
| } | } | ||||
| /* Notes on exceptions: | /* Notes on exceptions: | ||||
| * - Parameters component is where drivers are living. Changing any | * - Parameters component is where drivers are living. Changing any | ||||
| * of the (custom) properties in the original datablock (even the | * of the (custom) properties in the original datablock (even the | ||||
| * ones which do not imply other component update) need to make | * ones which do not imply other component update) need to make | ||||
| * sure drivers are properly updated. | * sure drivers are properly updated. | ||||
| * This way, for example, changing ID property will properly poke | * This way, for example, changing ID property will properly poke | ||||
| ▲ Show 20 Lines • Show All 122 Lines • Show Last 20 Lines | |||||