summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAaron Franke <arnfranke@yahoo.com>2021-06-15 21:15:38 -0400
committerAaron Franke <arnfranke@yahoo.com>2021-06-15 22:26:29 -0400
commitbd6ed3fb091d2d541f85e4152f0538088a3956db (patch)
tree564ea528f5533cf9b3d77c6d02df56a9877558a5 /modules
parentd36b220531198b494fc309c015e04867926992fd (diff)
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);
}
}
}