From e435adde657f26ce03e63235a4ae78e22f576891 Mon Sep 17 00:00:00 2001 From: Relintai Date: Thu, 6 Feb 2025 17:20:46 +0100 Subject: [PATCH] Codestyle fix. --- modules/terraman/meshers/terrain_mesher.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/terraman/meshers/terrain_mesher.cpp b/modules/terraman/meshers/terrain_mesher.cpp index 46fb30875..39601bff1 100644 --- a/modules/terraman/meshers/terrain_mesher.cpp +++ b/modules/terraman/meshers/terrain_mesher.cpp @@ -290,8 +290,9 @@ void TerrainMesher::build_mesh_into(RID mesh) { RS::get_singleton()->mesh_add_surface_from_arrays(mesh, RenderingServer::PRIMITIVE_TRIANGLES, arr); - if (_material.is_valid()) + if (_material.is_valid()) { RS::get_singleton()->mesh_surface_set_material(mesh, 0, _library->material_lod_get(0)->get_rid()); + } } void TerrainMesher::generate_normals(bool p_flip) {