diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-09-07 16:17:40 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-09-07 16:17:40 +0300 |
commit | fa7ee622f0fb2f7482dbae94df194a3b33a73a98 (patch) | |
tree | ea238e4fe370d261dd86580a670a5ce00f84cacf /source/blender/blenkernel/BKE_node.h | |
parent | 1b0dd5a2150c2207768ba74c1a25b842f3d4ece1 (diff) |
Cleanup: includes in headers
Forward declare structs where possible.
Diffstat (limited to 'source/blender/blenkernel/BKE_node.h')
-rw-r--r-- | source/blender/blenkernel/BKE_node.h | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/source/blender/blenkernel/BKE_node.h b/source/blender/blenkernel/BKE_node.h index cbfc8ffc7d0..98710394079 100644 --- a/source/blender/blenkernel/BKE_node.h +++ b/source/blender/blenkernel/BKE_node.h @@ -30,13 +30,7 @@ #include "DNA_listBase.h" /* for FOREACH_NODETREE_BEGIN */ -#include "DNA_light_types.h" -#include "DNA_material_types.h" #include "DNA_node_types.h" -#include "DNA_scene_types.h" -#include "DNA_texture_types.h" -#include "DNA_world_types.h" -#include "DNA_linestyle_types.h" #include "RNA_types.h" @@ -46,19 +40,23 @@ struct ARegion; struct ColorManagedDisplaySettings; struct ColorManagedViewSettings; +struct FreestyleLineStyle; struct GPUMaterial; struct GPUNodeStack; struct ID; struct ImBuf; struct ImageFormatData; +struct Light; struct ListBase; struct MTex; struct Main; +struct Material; struct PointerRNA; struct RenderData; struct Scene; struct SpaceNode; struct Tex; +struct World; struct bContext; struct bNode; struct bNodeExecContext; @@ -832,11 +830,11 @@ void BKE_node_tree_unlink_id(ID *id, struct bNodeTree *ntree); struct NodeTreeIterStore { bNodeTree *ngroup; Scene *scene; - Material *mat; + struct Material *mat; Tex *tex; - Light *light; - World *world; - FreestyleLineStyle *linestyle; + struct Light *light; + struct World *world; + struct FreestyleLineStyle *linestyle; }; void BKE_node_tree_iter_init(struct NodeTreeIterStore *ntreeiter, struct Main *bmain); |