Cleanup: Unused headers in generic compositor nodes header

Move headers to node files which actually need those.
There is no need for all nodes to have all those headers
included indirectly.
This commit is contained in:
Sergey Sharybin
2022-07-05 15:56:39 +02:00
parent 31f0845b7e
commit 329efa23d0
9 changed files with 16 additions and 12 deletions

View File

@@ -8,24 +8,12 @@
#pragma once
#include "DNA_ID.h"
#include "DNA_movieclip_types.h"
#include "DNA_node_types.h"
#include "BLT_translation.h"
#include "BKE_colorband.h"
#include "BKE_colortools.h"
#include "BKE_image.h"
#include "BKE_texture.h"
#include "BKE_tracking.h"
#include "node_util.h"
#include "IMB_imbuf.h"
#include "IMB_imbuf_types.h"
#include "RE_pipeline.h"
#include "NOD_composite.h"
#include "NOD_socket.h"
#include "NOD_socket_declarations.hh"

View File

@@ -17,12 +17,15 @@
#include "BKE_context.h"
#include "BKE_cryptomatte.hh"
#include "BKE_global.h"
#include "BKE_image.h"
#include "BKE_lib_id.h"
#include "BKE_library.h"
#include "BKE_main.h"
#include "MEM_guardedalloc.h"
#include "RE_pipeline.h"
#include <optional>
/* -------------------------------------------------------------------- */

View File

@@ -5,6 +5,8 @@
* \ingroup cmpnodes
*/
#include "BKE_colortools.h"
#include "UI_interface.h"
#include "UI_resources.h"

View File

@@ -7,6 +7,8 @@
#include "node_composite_util.hh"
#include "BKE_colortools.h"
namespace blender::nodes::node_composite_huecorrect_cc {
static void cmp_node_huecorrect_declare(NodeDeclarationBuilder &b)

View File

@@ -12,6 +12,7 @@
#include "BKE_context.h"
#include "BKE_global.h"
#include "BKE_image.h"
#include "BKE_lib_id.h"
#include "BKE_main.h"
#include "BKE_scene.h"
@@ -19,6 +20,7 @@
#include "DNA_scene_types.h"
#include "RE_engine.h"
#include "RE_pipeline.h"
#include "RNA_access.h"

View File

@@ -5,6 +5,8 @@
* \ingroup cmpnodes
*/
#include "BKE_texture.h"
#include "RNA_access.h"
#include "UI_interface.h"

View File

@@ -7,6 +7,7 @@
#include "BKE_context.h"
#include "BKE_lib_id.h"
#include "BKE_tracking.h"
#include "UI_interface.h"
#include "UI_resources.h"

View File

@@ -5,6 +5,8 @@
* \ingroup cmpnodes
*/
#include "BKE_tracking.h"
#include "RNA_access.h"
#include "RNA_prototypes.h"

View File

@@ -7,6 +7,8 @@
#include "node_composite_util.hh"
#include "BKE_colorband.h"
/* **************** VALTORGB ******************** */
namespace blender::nodes::node_composite_val_to_rgb_cc {