From 3c3e0571827cfe419c6daa8f4014c60d047c03ea Mon Sep 17 00:00:00 2001 From: Relintai Date: Tue, 17 Aug 2021 20:03:57 +0200 Subject: [PATCH] Check for the VERSION_MAJOR define instead of the GODOT4. --- tiled_wall/tiled_wall.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tiled_wall/tiled_wall.cpp b/tiled_wall/tiled_wall.cpp index 4987a65..bdbf881 100644 --- a/tiled_wall/tiled_wall.cpp +++ b/tiled_wall/tiled_wall.cpp @@ -186,7 +186,7 @@ void TiledWall::clear_mesh() { if (_mesh_rid != RID()) { if (VS::get_singleton()->mesh_get_surface_count(_mesh_rid) > 0) -#if !GODOT4 +#if VERSION_MAJOR < 4 VS::get_singleton()->mesh_remove_surface(_mesh_rid, 0); #else VS::get_singleton()->mesh_clear(_mesh_rid);