Fix T43151: Collada meshes crash Blender
We have multiple reports of collada files crashing, run all meshes through validate.
This commit is contained in:
parent
6d5ab8fdb7
commit
34003dd034
Notes:
blender-bot
2023-02-14 09:39:02 +01:00
Referenced by issue #43151, Collada (invalid imported mesh): Crash happens when switching among select modes
|
@ -1195,7 +1195,12 @@ bool MeshImporter::write_geometry(const COLLADAFW::Geometry *geom)
|
|||
|
||||
read_vertices(mesh, me);
|
||||
read_polys(mesh, me);
|
||||
BKE_mesh_calc_edges(me, false, false);
|
||||
|
||||
// must validate before calculating edges
|
||||
BKE_mesh_calc_normals(me);
|
||||
BKE_mesh_validate(me, false, false);
|
||||
// validation does this
|
||||
// BKE_mesh_calc_edges(me, false, false);
|
||||
|
||||
// read_lines() must be called after the face edges have been generated.
|
||||
// Oterwise the loose edges will be silently deleted again.
|
||||
|
|
Loading…
Reference in New Issue