Cleanup: Redundant check in depsgraph builder

The build_object_data_geometry() is never called on armatures.
This commit is contained in:
Sergey Sharybin 2022-08-04 15:47:35 +02:00
parent 67b92418ee
commit 0828361889
1 changed files with 1 additions and 6 deletions

View File

@ -2263,12 +2263,7 @@ void DepsgraphRelationBuilder::build_object_data_geometry(Object *object)
// add geometry collider relations
}
/* Make sure uber update is the last in the dependencies. */
if (object->type != OB_ARMATURE) {
/* Armatures does no longer require uber node. */
OperationKey obdata_ubereval_key(
&object->id, NodeType::GEOMETRY, OperationCode::GEOMETRY_EVAL);
add_relation(geom_init_key, obdata_ubereval_key, "Object Geometry UberEval");
}
add_relation(geom_init_key, obdata_ubereval_key, "Object Geometry UberEval");
if (object->type == OB_MBALL) {
Object *mom = BKE_mball_basis_find(scene_, object);
ComponentKey mom_geom_key(&mom->id, NodeType::GEOMETRY);