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 changed files with 4 additions and 0 deletions

View File

@ -25,6 +25,7 @@
#include "BKE_lib_id.hh"
#include "BKE_material.h"
#include "BKE_mesh.hh"
#include "BKE_mesh_runtime.hh"
#include "BKE_object.hh"
#include "DNA_meshdata_types.h"
@ -566,6 +567,9 @@ void MeshImporter::mesh_add_edges(Mesh *mesh, int len)
CustomData_free(&mesh->edge_data, mesh->edges_num);
mesh->edge_data = edge_data;
BKE_mesh_runtime_clear_cache(mesh);
mesh->edges_num = totedge;
}