diff options
author | Campbell Barton <campbell@blender.org> | 2022-03-28 09:11:34 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-03-28 09:15:41 +0300 |
commit | 387b34f0c2b768fcf1972575930e9ae822b7aca6 (patch) | |
tree | 5fc5c26d991072c1e6c62a010642c0042c350fd7 /source/blender/python/intern/bpy_interface_run.c | |
parent | 1466f480c4ea894c2f0b23663fcdba644cceb3f8 (diff) |
Cleanup: return success from python_script_error_jump
Relying on checks for the assignment of return arguments isn't so
clear especially when there are multiple return arguments.
Diffstat (limited to 'source/blender/python/intern/bpy_interface_run.c')
-rw-r--r-- | source/blender/python/intern/bpy_interface_run.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/python/intern/bpy_interface_run.c b/source/blender/python/intern/bpy_interface_run.c index 8f7437ac1da..9299bd196e2 100644 --- a/source/blender/python/intern/bpy_interface_run.c +++ b/source/blender/python/intern/bpy_interface_run.c @@ -39,8 +39,7 @@ static void python_script_error_jump_text(Text *text, const char *filepath) { int lineno, lineno_end; int offset, offset_end; - python_script_error_jump(filepath, &lineno, &offset, &lineno_end, &offset_end); - if (lineno != -1) { + if (python_script_error_jump(filepath, &lineno, &offset, &lineno_end, &offset_end)) { /* Start at the end so cursor motion that looses the selection, * leaves the cursor from the most useful place. * Also, the end can't always be set, so don't give it priority. */ |