Fix crash in mesh data transfer

This commit is contained in:
Campbell Barton 2015-03-10 19:46:24 +11:00
parent 95a1cc20dc
commit 8a551394e5
1 changed files with 1 additions and 1 deletions

View File

@ -299,7 +299,7 @@ static bool data_transfer_exec_is_object_valid(
wmOperator *op, Object *ob_src, Object *ob_dst, const bool reverse_transfer)
{
Mesh *me;
if ((ob_dst == ob_src) || !ELEM(OB_MESH, ob_src->type, ob_dst->type)) {
if ((ob_dst == ob_src) || (ob_src->type != OB_MESH) || (ob_dst->type != OB_MESH)) {
return false;
}