Object update: Remove fallback from batch_cache_deform_tag

Falback is not really necessary, and causes
`BKE_object_data_batch_cache_dirty_tag` to run multithreaded in an
unsafe way.

No functional changes.
This commit is contained in:
Germano Cavalcante 2021-07-19 09:50:53 -03:00
parent 101a493ab5
commit 62a2faa7ef
Notes: blender-bot 2023-02-14 08:49:53 +01:00
Referenced by commit ceb612a79c, Revert "Depsgraph: Implement 'ID_RECALC_GEOMETRY_DEFORM'"
1 changed files with 1 additions and 2 deletions

View File

@ -402,8 +402,7 @@ void BKE_object_data_eval_batch_cache_deform_tag(Depsgraph *depsgraph, ID *objec
BKE_mesh_batch_cache_dirty_tag((Mesh *)object_data, BKE_MESH_BATCH_DIRTY_DEFORM);
break;
default:
/* Only mesh is currently supported. Fallback to dirty all for other datablocks types. */
BKE_object_data_batch_cache_dirty_tag(object_data);
/* Only mesh is currently supported. */
break;
}
}