From b78a87d6588fefbf01433e391518b037814760d3 Mon Sep 17 00:00:00 2001 From: Relintai Date: Mon, 7 Feb 2022 00:20:30 +0100 Subject: [PATCH] Work on fixing compile for 4.0. --- texture_packer.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/texture_packer.h b/texture_packer.h index 3d238e4..a69c1b4 100644 --- a/texture_packer.h +++ b/texture_packer.h @@ -27,7 +27,10 @@ SOFTWARE. #if VERSION_MAJOR > 3 #include "core/io/image.h" -#include "core/object/reference.h" +#include "core/object/ref_counted.h" +#ifndef Reference +#define Reference RefCounted +#endif #include "core/templates/vector.h" #include "core/string/ustring.h" #include "core/math/color.h"