style cleanup
This commit is contained in:
@@ -195,7 +195,7 @@ static PyObject *bpy_resource_path(PyObject *UNUSED(self), PyObject *args, PyObj
|
||||
return NULL;
|
||||
|
||||
/* stupid string compare */
|
||||
if (!strcmp(type, "USER")) folder_id = BLENDER_RESOURCE_PATH_USER;
|
||||
if (!strcmp(type, "USER")) folder_id = BLENDER_RESOURCE_PATH_USER;
|
||||
else if (!strcmp(type, "LOCAL")) folder_id = BLENDER_RESOURCE_PATH_LOCAL;
|
||||
else if (!strcmp(type, "SYSTEM")) folder_id = BLENDER_RESOURCE_PATH_SYSTEM;
|
||||
else {
|
||||
|
||||
@@ -101,7 +101,7 @@ void bpy_context_update(bContext *C)
|
||||
/* don't do this from a non-main (e.g. render) thread, it can cause a race
|
||||
condition on C->data.recursion. ideal solution would be to disable
|
||||
context entirely from non-main threads, but that's more complicated */
|
||||
if(!BLI_thread_is_main())
|
||||
if (!BLI_thread_is_main())
|
||||
return;
|
||||
|
||||
BPy_SetContext(C);
|
||||
|
||||
Reference in New Issue
Block a user