Fix invalid array index in armature_deform_verts().
authorNicholas Bishop <nicholasbishop@gmail.com>
Mon, 11 Jun 2012 11:00:58 +0000 (11:00 +0000)
committerNicholas Bishop <nicholasbishop@gmail.com>
Mon, 11 Jun 2012 11:00:58 +0000 (11:00 +0000)
commiteba2f2320cf1e0415897240b82d9ff892ce85ae7
treeddee15545079e5c17da33501925649865eac0997
parentd214b140522424a6794a0f70b2bd738ec41a7005
Fix invalid array index in armature_deform_verts().

Check that the def_nr is non-negative before using as index.

Fixes bug [#31700] Crash when opening .blend file on 64bit environment
source/blender/blenkernel/intern/armature.c