Fix build for 4.0.

This commit is contained in:
Relintai 2020-04-09 12:36:33 +02:00
parent 152be1328b
commit 0aceb2aeca
4 changed files with 32 additions and 0 deletions

View File

@ -23,7 +23,15 @@ SOFTWARE.
#ifndef PROP_ESS_ENTITY_H
#define PROP_ESS_ENTITY_H
#include "core/version.h"
#if VERSION_MAJOR < 4
#include "scene/3d/spatial.h"
#else
#include "scene/3d/node_3d.h"
#define Spatial Node3D
#endif
#include "core/math/vector3.h"

View File

@ -23,7 +23,15 @@ SOFTWARE.
#ifndef PROP_INSTANCE_H
#define PROP_INSTANCE_H
#include "core/version.h"
#if VERSION_MAJOR < 4
#include "scene/3d/spatial.h"
#else
#include "scene/3d/node_3d.h"
#define Spatial Node3D
#endif
#include "core/math/vector3.h"

View File

@ -23,7 +23,15 @@ SOFTWARE.
#ifndef PROP_MESH_DATA_INSTANCE_H
#define PROP_MESH_DATA_INSTANCE_H
#include "core/version.h"
#if VERSION_MAJOR < 4
#include "scene/3d/spatial.h"
#else
#include "scene/3d/node_3d.h"
#define Spatial Node3D
#endif
#include "core/math/vector3.h"

View File

@ -23,7 +23,15 @@ SOFTWARE.
#ifndef PROP_VOXELMAN_LIGHT_H
#define PROP_VOXELMAN_LIGHT_H
#include "core/version.h"
#if VERSION_MAJOR < 4
#include "scene/3d/spatial.h"
#else
#include "scene/3d/node_3d.h"
#define Spatial Node3D
#endif
#include "core/math/vector3.h"