Freestyle: Fix for a potential implementation error in the Python wrapper of the Nature class.

This commit is contained in:
Tamito Kajiyama 2014-03-13 21:00:59 +09:00
parent 0141265073
commit 899caeae49
1 changed files with 2 additions and 2 deletions

View File

@ -288,8 +288,8 @@ static PyObject *BPy_Nature_bitwise(PyObject *a, int op, PyObject *b)
v = op1 | op2;
break;
default:
BLI_assert(0);
v = 0;
PyErr_BadArgument();
return NULL;
}
if (v == 0)
result = PyObject_NewVar(BPy_Nature, &Nature_Type, 0);