Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGaia Clary <gaia.clary@machinimatrix.org>2013-06-29 12:38:17 +0400
committerGaia Clary <gaia.clary@machinimatrix.org>2013-06-29 12:38:17 +0400
commit23d3c64b5926e888f7be056461604d91ff0790e7 (patch)
treedddde6bae58cadd40b19b21c742b7af1caa18cba /source/blender/blenkernel/intern/mesh.c
parent62ab3baea43a7ab37f761330978f2b3d0a84e11f (diff)
fixed Blender crash, but unclear when this situation can happen
Diffstat (limited to 'source/blender/blenkernel/intern/mesh.c')
-rw-r--r--source/blender/blenkernel/intern/mesh.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/mesh.c b/source/blender/blenkernel/intern/mesh.c
index 92ba82a9ce2..9070e253d45 100644
--- a/source/blender/blenkernel/intern/mesh.c
+++ b/source/blender/blenkernel/intern/mesh.c
@@ -3938,7 +3938,10 @@ int BKE_mesh_mselect_active_get(Mesh *me, int type)
{
BLI_assert(ELEM3(type, ME_VSEL, ME_ESEL, ME_FSEL));
- if (me->totselect) {
+ /* XXX how can it be that sometimes me->mselect is NULL here ?
+ It happens, but its not clear why it happens!
+ */
+ if (me->totselect && me->mselect) {
if (me->mselect[me->totselect - 1].type == type) {
return me->mselect[me->totselect - 1].index;
}