Blender Git Commit Log

Git Commits -> Revision 973ab43

Revision 973ab43 by Sybren A. Stüvel (master)
May 12, 2020, 11:58 (GMT)
Fix T76514: Invalid geometry in Alembic crashes Blender

Even though {T76514} is caused by invalid geometry, and thus technically
constitutes a bug in the software that created the Alembic file, I would
like Blender not to crash on importing such a file.

The error in the Alembic file consists of invalid mesh loops, where
consecutive loops refer to the same vertex. The `BKE_mesh_validate()`
can actually correct these errors, so this commit focuses on two things:

- Letting Blender survive the situation until the mesh is loaded, and
- Detecting the error so that `BKE_mesh_validate()` can be called only
when necessary. This ensures there is only a minimal impact on
performance when loading actually valid data.

Differential Revision: https://developer.blender.org/D7703

Reviewed By: JacquesLucke

Commit Details:

Full Hash: 973ab436f07c652cb6aa13bedc351df06bce6561
Parent Commit: fffcb6e
Lines Changed: +29, -3

3 Modified Paths:

/source/blender/blenkernel/intern/mesh_validate.c (+9, -2) (Diff)
/source/blender/io/alembic/intern/abc_customdata.h (+4, -1) (Diff)
/source/blender/io/alembic/intern/abc_reader_mesh.cc (+16, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021