summaryrefslogtreecommitdiff
path: root/modules/gltf
diff options
context:
space:
mode:
authorrafallus <rafaelmtzg@gmail.com>2022-01-26 23:44:36 -0600
committerrafallus <rafallus.dev@gmail.com>2022-08-20 21:42:20 -0500
commitda7a5653f4319760d4fbfbeb97b95df9efbb3391 (patch)
treea6b8e7199488c69009acc9f3af1476698180a4a0 /modules/gltf
parent0c5f254956f0115e363ce08045dd178dc30b54f8 (diff)
Expose Basis `set_orthogonal_index` method as a GridMap function
Diffstat (limited to 'modules/gltf')
-rw-r--r--modules/gltf/gltf_document.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gltf/gltf_document.cpp b/modules/gltf/gltf_document.cpp
index d102970932..6a6de40fbb 100644
--- a/modules/gltf/gltf_document.cpp
+++ b/modules/gltf/gltf_document.cpp
@@ -5442,7 +5442,7 @@ void GLTFDocument::_convert_grid_map_to_gltf(GridMap *p_grid_map, GLTFNodeIndex
int32_t cell = p_grid_map->get_cell_item(
Vector3(cell_location.x, cell_location.y, cell_location.z));
Transform3D cell_xform;
- cell_xform.basis.set_orthogonal_index(
+ cell_xform.basis = p_grid_map->get_basis_with_orthogonal_index(
p_grid_map->get_cell_item_orientation(
Vector3(cell_location.x, cell_location.y, cell_location.z)));
cell_xform.basis.scale(Vector3(p_grid_map->get_cell_scale(),