style cleanup: follow style guide for formatting of if/for/while loops, and else if's
This commit is contained in:
@@ -707,7 +707,7 @@ char *PyC_FlagSet_AsString(PyC_FlagSet *item)
|
||||
|
||||
int PyC_FlagSet_ValueFromID_int(PyC_FlagSet *item, const char *identifier, int *value)
|
||||
{
|
||||
for( ; item->identifier; item++) {
|
||||
for ( ; item->identifier; item++) {
|
||||
if (strcmp(item->identifier, identifier) == 0) {
|
||||
*value = item->value;
|
||||
return 1;
|
||||
|
||||
@@ -6086,7 +6086,7 @@ static PyObject *pyrna_srna_Subtype(StructRNA *srna)
|
||||
}
|
||||
|
||||
/* always use O not N when calling, N causes refcount errors */
|
||||
newclass = PyObject_CallFunction(metaclass, (char *)"s(O){sss()}",
|
||||
newclass = PyObject_CallFunction(metaclass, (char *)"s(O) {sss()}",
|
||||
idname, py_base, "__module__","bpy.types", "__slots__");
|
||||
|
||||
/* newclass will now have 2 ref's, ???, probably 1 is internal since decrefing here segfaults */
|
||||
|
||||
Reference in New Issue
Block a user