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/blenloader/intern/undofile.c | 1 + source/blender/blenloader/intern/versioning_280.c | 15 ++++++++------- 2 files changed, 9 insertions(+), 7 deletions(-) (limited to 'source/blender/blenloader') diff --git a/source/blender/blenloader/intern/undofile.c b/source/blender/blenloader/intern/undofile.c index 614a3be559b..b38259f0f98 100644 --- a/source/blender/blenloader/intern/undofile.c +++ b/source/blender/blenloader/intern/undofile.c @@ -53,6 +53,7 @@ #include "BLO_undofile.h" #include "BLO_readfile.h" +#include "BKE_library.h" #include "BKE_main.h" /* keep last */ diff --git a/source/blender/blenloader/intern/versioning_280.c b/source/blender/blenloader/intern/versioning_280.c index 040c08eb63f..fc873e3a3a1 100644 --- a/source/blender/blenloader/intern/versioning_280.c +++ b/source/blender/blenloader/intern/versioning_280.c @@ -63,31 +63,32 @@ #include "DNA_armature_types.h" #include "BKE_action.h" +#include "BKE_cloth.h" #include "BKE_collection.h" #include "BKE_constraint.h" -#include "BKE_customdata.h" #include "BKE_colortools.h" +#include "BKE_customdata.h" #include "BKE_freestyle.h" +#include "BKE_gpencil.h" #include "BKE_idprop.h" #include "BKE_image.h" +#include "BKE_key.h" +#include "BKE_library.h" #include "BKE_layer.h" #include "BKE_main.h" #include "BKE_material.h" #include "BKE_mesh.h" #include "BKE_node.h" +#include "BKE_object.h" +#include "BKE_paint.h" #include "BKE_pointcache.h" #include "BKE_report.h" #include "BKE_scene.h" #include "BKE_screen.h" #include "BKE_sequencer.h" #include "BKE_studiolight.h" -#include "BKE_workspace.h" -#include "BKE_gpencil.h" -#include "BKE_paint.h" -#include "BKE_object.h" -#include "BKE_cloth.h" -#include "BKE_key.h" #include "BKE_unit.h" +#include "BKE_workspace.h" /* Only for IMB_BlendMode */ #include "IMB_imbuf.h" -- cgit v1.2.3