From e12c08e8d170b7ca40f204a5b0423c23a9fbc2c1 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 17 Apr 2019 06:17:24 +0200 Subject: ClangFormat: apply to source, most of intern Apply clang format as proposed in T53211. For details on usage and instructions for migrating branches without conflicts, see: https://wiki.blender.org/wiki/Tools/ClangFormat --- source/blender/python/generic/bpy_threads.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'source/blender/python/generic/bpy_threads.c') diff --git a/source/blender/python/generic/bpy_threads.c b/source/blender/python/generic/bpy_threads.c index 1f80caa6182..2474b08180f 100644 --- a/source/blender/python/generic/bpy_threads.c +++ b/source/blender/python/generic/bpy_threads.c @@ -29,20 +29,20 @@ /* analogue of PyEval_SaveThread() */ BPy_ThreadStatePtr BPY_thread_save(void) { - PyThreadState *tstate = PyThreadState_Swap(NULL); - /* note: tstate can be NULL when quitting Blender */ + PyThreadState *tstate = PyThreadState_Swap(NULL); + /* note: tstate can be NULL when quitting Blender */ - if (tstate && PyEval_ThreadsInitialized()) { - PyEval_ReleaseLock(); - } + if (tstate && PyEval_ThreadsInitialized()) { + PyEval_ReleaseLock(); + } - return (BPy_ThreadStatePtr)tstate; + return (BPy_ThreadStatePtr)tstate; } /* analogue of PyEval_RestoreThread() */ void BPY_thread_restore(BPy_ThreadStatePtr tstate) { - if (tstate) { - PyEval_RestoreThread((PyThreadState *)tstate); - } + if (tstate) { + PyEval_RestoreThread((PyThreadState *)tstate); + } } -- cgit v1.2.3