Merge pull request #49638 from aaronfranke/multiply-transforms

Allow multiplying Transforms and Basis by numbers
This commit is contained in:
Rémi Verschelde 2021-06-18 12:35:14 +02:00 committed by GitHub
commit 3fc39954ec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 104 additions and 17 deletions

View file

@ -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);
}
}
}