mirror of
https://github.com/Relintai/props.git
synced 2024-11-08 10:02:14 +01:00
Check for the VERSION_MAJOR define instead of the GODOT4.
This commit is contained in:
parent
2e4ab17d2e
commit
3c3e057182
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user