Commit: 47ad71705c1b9d279484773c516b1cefc705ef44
Author: Campbell Barton
Date: Thu Jan 31 09:47:19 2019 +1100
Branches: temp-wm-event-api
https://developer.blender.org/rB47ad71705c1b9d279484773c516b1cefc705ef44
Correct bool check
===================================================================
M source/blender/python/intern/bpy_app.c
===================================================================
diff --git a/source/blender/python/intern/bpy_app.c
b/source/blender/python/intern/bpy_app.c
index 05b555d8fb9..c9b569561b9 100644
--- a/source/blender/python/intern/bpy_app.c
+++ b/source/blender/python/intern/bpy_app.c
@@ -268,7 +268,7 @@ static int bpy_app_debug_set(PyObject *UNUSED(self),
PyObject *value, void *clos
static int bpy_app_debug_set__only_disable(PyObject *UNUSED(self), PyObject
*value, void *closure)
{
const int param = PyObject_IsTrue(value);
- if (param) {
+ if (param == 1) {
PyErr_SetString(PyExc_ValueError, "This bpy.app.debug option
can only be disabled");
return -1;
}
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs