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

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