From 4b2110fc86e59136efd7ea294453678e848b4b74 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Wed, 7 Nov 2018 15:37:31 +0100 Subject: 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... --- source/blender/render/intern/source/bake_api.c | 3 ++- source/blender/render/intern/source/render_result.c | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'source/blender/render') diff --git a/source/blender/render/intern/source/bake_api.c b/source/blender/render/intern/source/bake_api.c index 1b3398f8e5b..17b26bce7bb 100644 --- a/source/blender/render/intern/source/bake_api.c +++ b/source/blender/render/intern/source/bake_api.c @@ -76,10 +76,11 @@ #include "BKE_bvhutils.h" #include "BKE_customdata.h" #include "BKE_image.h" -#include "BKE_node.h" +#include "BKE_library.h" #include "BKE_mesh.h" #include "BKE_mesh_tangent.h" #include "BKE_mesh_runtime.h" +#include "BKE_node.h" #include "IMB_imbuf_types.h" #include "IMB_imbuf.h" diff --git a/source/blender/render/intern/source/render_result.c b/source/blender/render/intern/source/render_result.c index 60e0a3d3843..5f46d061f8e 100644 --- a/source/blender/render/intern/source/render_result.c +++ b/source/blender/render/intern/source/render_result.c @@ -45,11 +45,12 @@ #include "BLI_threads.h" #include "BKE_appdir.h" -#include "BKE_image.h" +#include "BKE_camera.h" #include "BKE_global.h" +#include "BKE_image.h" +#include "BKE_library.h" #include "BKE_main.h" #include "BKE_report.h" -#include "BKE_camera.h" #include "BKE_scene.h" #include "IMB_imbuf.h" -- cgit v1.2.3