Moved more includes from headers to cpp files.

This commit is contained in:
Relintai 2022-03-16 20:46:00 +01:00
parent f105eba923
commit d996789533
6 changed files with 12 additions and 3 deletions

View File

@ -33,6 +33,7 @@
#include "collision_object.h"
#include "scene/resources/concave_polygon_shape.h"
#include "scene/resources/convex_polygon_shape.h"
#include "scene/resources/shape.h"
void CollisionPolygon::_build_polygon() {
if (!parent) {

View File

@ -32,9 +32,11 @@
#define COLLISION_POLYGON_H
#include "scene/3d/spatial.h"
#include "scene/resources/shape.h"
#include "core/reference.h"
class CollisionObject;
class Shape;
class CollisionPolygon : public Spatial {
GDCLASS(CollisionPolygon, Spatial);
real_t margin = 0.04;

View File

@ -41,6 +41,7 @@
#include "scene/resources/ray_shape.h"
#include "scene/resources/sphere_shape.h"
#include "servers/visual_server.h"
#include "scene/resources/shape.h"
void CollisionShape::make_convex_from_brothers() {
Node *p = get_parent();

View File

@ -32,8 +32,11 @@
#define COLLISION_SHAPE_H
#include "scene/3d/spatial.h"
#include "scene/resources/shape.h"
#include "core/reference.h"
class CollisionObject;
class shape;
class CollisionShape : public Spatial {
GDCLASS(CollisionShape, Spatial);
OBJ_CATEGORY("3D Physics Nodes");

View File

@ -32,8 +32,11 @@
#define IMMEDIATE_GEOMETRY_H
#include "scene/3d/visual_instance.h"
#include "scene/resources/mesh.h"
class Texture;
class ImmediateGeometry : public GeometryInstance {
GDCLASS(ImmediateGeometry, GeometryInstance);

View File

@ -32,7 +32,6 @@
#define LIGHT_H
#include "scene/3d/visual_instance.h"
#include "scene/resources/texture.h"
#include "servers/visual_server.h"
class Light : public VisualInstance {