Work on fixing compile for 4.0.

This commit is contained in:
Relintai 2022-02-07 00:19:52 +01:00
parent d66c8c4ac7
commit 73dae84e9b
2 changed files with 12 additions and 4 deletions

View File

@ -26,15 +26,19 @@ SOFTWARE.
#include "core/version.h"
#if VERSION_MAJOR > 3
#include "core/object/reference.h"
#include "core/object/ref_counted.h"
#ifndef Reference
#define Reference RefCounted
#endif
#include "core/math/transform_3d.h"
#include "core/templates/vector.h"
#else
#include "core/reference.h"
#include "core/vector.h"
#include "core/math/transform.h"
#endif
#include "core/math/rect2.h"
#include "core/math/transform.h"
#include "core/math/vector2.h"
#include "core/math/vector3.h"

View File

@ -27,11 +27,15 @@ SOFTWARE.
#if VERSION_MAJOR > 3
#include "core/io/resource.h"
#include "core/math/transform_3d.h"
#ifndef Transform
#define Transform Transform3D
#endif
#else
#include "core/resource.h"
#endif
#include "core/math/transform.h"
#endif
class PropData;
class PropMesher;