Cleanup: includes in headers

Forward declare structs where possible.
This commit is contained in:
2019-09-07 23:17:40 +10:00
parent 1b0dd5a215
commit fa7ee622f0
13 changed files with 25 additions and 26 deletions

View File

@@ -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);