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:
authorBastien Montagne <montagne29@wanadoo.fr>2018-11-07 17:37:31 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2018-11-07 22:58:53 +0300
commit4b2110fc86e59136efd7ea294453678e848b4b74 (patch)
tree5b313949860b4b73839a5be6a7d2d94d4641955e /source/blender/python
parent4779165ca18ae3ced005aad129575b70fc6c4f9d (diff)
Cleanup: Remove 'BKE_library.h' include from 'BKE_main.h'
That kind of implicit includes should really only be done when totally, absolutely necessary, and ideally only with rather simple 'second-level' headers. Otherwise not being explicit with includes always end up biting in unexpected ways...
Diffstat (limited to 'source/blender/python')
-rw-r--r--source/blender/python/generic/bpy_internal_import.c3
-rw-r--r--source/blender/python/intern/bpy_interface.c5
2 files changed, 5 insertions, 3 deletions
diff --git a/source/blender/python/generic/bpy_internal_import.c b/source/blender/python/generic/bpy_internal_import.c
index c1e5f947110..bf77a097914 100644
--- a/source/blender/python/generic/bpy_internal_import.c
+++ b/source/blender/python/generic/bpy_internal_import.c
@@ -43,9 +43,10 @@
#include "BLI_string.h"
#include "BLI_utildefines.h"
+#include "BKE_library.h"
+#include "BKE_main.h"
/* UNUSED */
#include "BKE_text.h" /* txt_to_buf */
-#include "BKE_main.h"
#include "py_capi_utils.h"
diff --git a/source/blender/python/intern/bpy_interface.c b/source/blender/python/intern/bpy_interface.c
index 94af148da85..d3eaf8ca5af 100644
--- a/source/blender/python/intern/bpy_interface.c
+++ b/source/blender/python/intern/bpy_interface.c
@@ -58,9 +58,10 @@
#include "BKE_appdir.h"
#include "BKE_context.h"
-#include "BKE_text.h"
-#include "BKE_main.h"
#include "BKE_global.h" /* only for script checking */
+#include "BKE_library.h"
+#include "BKE_main.h"
+#include "BKE_text.h"
#include "CCL_api.h"