Fix T51900: Crash after pressing "F" multiple times.
authorBastien Montagne <montagne29@wanadoo.fr>
Wed, 28 Jun 2017 08:53:52 +0000 (10:53 +0200)
committerBastien Montagne <montagne29@wanadoo.fr>
Wed, 28 Jun 2017 08:53:52 +0000 (10:53 +0200)
commit2c0ee61f6d3dc6baf8bb75d747c4fb1c2aca2f87
tree731c36d4996d9f1851e0d44c9a9b86c350998d9d
parentf11bcbed9d0402db271bc610eaec156583e746fa
Fix T51900: Crash after pressing "F" multiple times.

`BMO_iter_as_array()` may fill less items than requested in given array,
so we have to update number of items to work on from its returned value,
otherwise code might try to use uninitialized memory.
source/blender/bmesh/operators/bmo_create.c