Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2021-02-18 22:58:27 +0300
committerHans Goudey <h.goudey@me.com>2021-02-18 22:58:27 +0300
commit73f4dfa3c5fd2714ed2fff528588d0826995449e (patch)
tree3f2d64681758e8a32ed54b6b9559b78dae598e96 /source/blender/python/gpu/gpu_py_framebuffer.c
parentd519b33b327607ad7835561d951559da8f79034e (diff)
Cleanup: Clang tidy else after return
Diffstat (limited to 'source/blender/python/gpu/gpu_py_framebuffer.c')
-rw-r--r--source/blender/python/gpu/gpu_py_framebuffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/gpu/gpu_py_framebuffer.c b/source/blender/python/gpu/gpu_py_framebuffer.c
index 487f0f984cb..04d49a9f15d 100644
--- a/source/blender/python/gpu/gpu_py_framebuffer.c
+++ b/source/blender/python/gpu/gpu_py_framebuffer.c
@@ -300,7 +300,7 @@ static PyObject *pygpu_framebuffer__tp_new(PyTypeObject *UNUSED(self),
if (!pygpu_framebuffer_new_parse_arg(depth_attachment, &config[0])) {
return NULL;
}
- else if (config[0].tex && !GPU_texture_depth(config[0].tex)) {
+ if (config[0].tex && !GPU_texture_depth(config[0].tex)) {
PyErr_SetString(PyExc_ValueError, "Depth texture with incompatible format");
return NULL;
}