Fix #31835: OBJ Importer corrupts a model (crash in edit mode)
authorSergey Sharybin <sergey.vfx@gmail.com>
Thu, 28 Jun 2012 09:08:11 +0000 (09:08 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Thu, 28 Jun 2012 09:08:11 +0000 (09:08 +0000)
commit33e8feb880e9a11434aa408cd524b6e1919c88f7
treec525037479119ee4366d842cdf825a821e2997a5
parent25f59c8e0b6d685634cf732648e496540eb6ea68
Fix #31835: OBJ Importer corrupts a model (crash in edit mode)

Added back face validation to BKE_mesh_validate_arrays.

This is needed because some addons (like OBJ importer) are reading
tessfaces and then converting them to ngons and validation of tessfaces
is needed before such a conversion.

Validation of faces would happen only if there's no polys in mesh.
source/blender/blenkernel/BKE_mesh.h
source/blender/blenkernel/intern/mesh_validate.c