Fix T89941: No path`s bevel update, when I change bevel profile curve

Update was skipping the batch cache.
This commit is contained in:
Germano Cavalcante 2021-07-19 09:47:56 -03:00
parent ff01070b5c
commit 101a493ab5
Notes: blender-bot 2023-02-14 06:00:50 +01:00
Referenced by commit ceb612a79c, Revert "Depsgraph: Implement 'ID_RECALC_GEOMETRY_DEFORM'"
Referenced by issue #89941, Regression: no path`s bevel update, when I change bevel profile curve
1 changed files with 5 additions and 5 deletions

View File

@ -2269,21 +2269,21 @@ void DepsgraphRelationBuilder::build_object_data_geometry_datablock(ID *obdata)
Curve *cu = (Curve *)obdata;
if (cu->bevobj != nullptr) {
ComponentKey bevob_geom_key(&cu->bevobj->id, NodeType::GEOMETRY);
add_relation(bevob_geom_key, obdata_geom_eval_key, "Curve Bevel Geometry");
add_relation(bevob_geom_key, obdata_geom_init_key, "Curve Bevel Geometry");
ComponentKey bevob_key(&cu->bevobj->id, NodeType::TRANSFORM);
add_relation(bevob_key, obdata_geom_eval_key, "Curve Bevel Transform");
add_relation(bevob_key, obdata_geom_init_key, "Curve Bevel Transform");
build_object(cu->bevobj);
}
if (cu->taperobj != nullptr) {
ComponentKey taperob_key(&cu->taperobj->id, NodeType::GEOMETRY);
add_relation(taperob_key, obdata_geom_eval_key, "Curve Taper");
add_relation(taperob_key, obdata_geom_init_key, "Curve Taper");
build_object(cu->taperobj);
}
if (cu->textoncurve != nullptr) {
ComponentKey textoncurve_geom_key(&cu->textoncurve->id, NodeType::GEOMETRY);
add_relation(textoncurve_geom_key, obdata_geom_eval_key, "Text on Curve Geometry");
add_relation(textoncurve_geom_key, obdata_geom_init_key, "Text on Curve Geometry");
ComponentKey textoncurve_key(&cu->textoncurve->id, NodeType::TRANSFORM);
add_relation(textoncurve_key, obdata_geom_eval_key, "Text on Curve Transform");
add_relation(textoncurve_key, obdata_geom_init_key, "Text on Curve Transform");
build_object(cu->textoncurve);
}
break;