Cleanup: style, use braces for the Python API
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user