forked from bartvdbraak/blender
Freestyle: Fix for a potential implementation error in the Python wrapper of the Nature class.
This commit is contained in:
parent
0141265073
commit
899caeae49
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user