Cleanup: style, use braces for the Python API

This commit is contained in:
2019-03-30 06:12:48 +11:00
parent 18d06e8d21
commit 25ec4b437f
39 changed files with 1689 additions and 800 deletions

View File

@@ -253,8 +253,12 @@ static int bpy_app_debug_set(PyObject *UNUSED(self), PyObject *value, void *clos
return -1;
}
if (param) G.debug |= flag;
else G.debug &= ~flag;
if (param) {
G.debug |= flag;
}
else {
G.debug &= ~flag;
}
return 0;
}
@@ -278,8 +282,12 @@ static int bpy_app_global_flag_set(PyObject *UNUSED(self), PyObject *value, void
return -1;
}
if (param) G.f |= flag;
else G.f &= ~flag;
if (param) {
G.f |= flag;
}
else {
G.f &= ~flag;
}
return 0;
}