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;
|
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);
|
||||||
|
Loading…
Reference in New Issue
Block a user