Fix #120721: Collada: Import with loose edges not immediately show them #120737

Merged
Philipp Oeser merged 1 commits from lichtwerk/blender:120721 into main 2024-04-17 14:21:20 +02:00

1 Commits

Author SHA1 Message Date
Philipp Oeser c330694610 Fix #120721: Collada: Import with loose edges not immediately show them
Exposed by 1ea169d90e

Colladas `MeshImporter::mesh_add_edges` is a copy from `mesh_add_edges`
in `source/blender/editors/mesh/mesh_data.cc` (done in 2c05190374 --
there is a comment to deduplicate this into BKE, but this wont be done
in this patch).

However, as time passed there have been additions to the later, namely:

- 353fe610ed (clearing the mesh runtime caches)
- 12becbf0df (altering selection handling, guess this can be ignored
here since collada generally does not seem to select geometry)

So in order to resolve, now also clear the caches for collada as in
353fe610ed (even though just the subset of just `mesh->runtime-
>loose_edges_cache.tag_dirty()` would also be enough).
2024-04-17 11:40:25 +02:00