diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-03-10 15:13:03 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-03-10 15:13:03 +0300 |
commit | 5991c5c9289792e8f9d14375b254ba81306680ac (patch) | |
tree | 292f21407543f8240094bda77f78c6c7d7777146 /source/blender | |
parent | 493628e5418b1543d82e314b34832ad6cc365055 (diff) |
Cleanup: unused warning building as a Python module
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/python/intern/bpy_interface.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/python/intern/bpy_interface.c b/source/blender/python/intern/bpy_interface.c index c5f5e9c71b8..331884c0bd2 100644 --- a/source/blender/python/intern/bpy_interface.c +++ b/source/blender/python/intern/bpy_interface.c @@ -304,6 +304,7 @@ static struct _inittab bpy_internal_modules[] = { {NULL, NULL}, }; +#ifndef WITH_PYTHON_MODULE /** * Convenience function for #BPY_python_start. * @@ -321,6 +322,7 @@ static void pystatus_exit_on_error(PyStatus status) Py_ExitStatusException(status); } } +#endif /* call BPY_context_set first */ void BPY_python_start(bContext *C, int argc, const char **argv) |