summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-06-18 12:35:14 +0200
committerGitHub <noreply@github.com>2021-06-18 12:35:14 +0200
commit3fc39954ec3473cc022af615c5eb8b1ba271e008 (patch)
tree90b2c8ccc77e6775b0fe9eae0037089ae77c0c48 /modules
parent3e8620c2759e6a457ea48b159bd6664d8d98b272 (diff)
parentbd6ed3fb091d2d541f85e4152f0538088a3956db (diff)
Merge pull request #49638 from aaronfranke/multiply-transforms
Allow multiplying Transforms and Basis by numbers
Diffstat (limited to 'modules')
-rw-r--r--modules/gdnavigation/navigation_mesh_generator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdnavigation/navigation_mesh_generator.cpp b/modules/gdnavigation/navigation_mesh_generator.cpp
index d69c9114b9..b94f4b4c6c 100644
--- a/modules/gdnavigation/navigation_mesh_generator.cpp
+++ b/modules/gdnavigation/navigation_mesh_generator.cpp
@@ -255,7 +255,7 @@ void NavigationMeshGenerator::_parse_geometry(Transform3D p_accumulated_transfor
for (int i = 0; i < meshes.size(); i += 2) {
Ref<Mesh> mesh = meshes[i + 1];
if (mesh.is_valid()) {
- _add_mesh(mesh, p_accumulated_transform * xform * meshes[i], p_verticies, p_indices);
+ _add_mesh(mesh, p_accumulated_transform * xform * (Transform3D)meshes[i], p_verticies, p_indices);
}
}
}