Skip to content

Commit

Permalink
More warning fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
qnzhou committed Oct 23, 2024
1 parent 917c7f1 commit c2681f7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/io/src/load_fbx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
#include <lagrange/utils/assert.h>
#include <lagrange/utils/safe_cast.h>
#include <lagrange/utils/utils.h>
#include <lagrange/utils/warning.h>

#include <ufbx.h>

Expand Down Expand Up @@ -309,8 +310,10 @@ SceneType load_simple_scene_fbx(const ufbx_scene* scene, const LoadOptions& opt)
if (node->mesh) {
size_t mesh_idx = element_index[node->mesh->element_id];
la_runtime_assert(mesh_idx != invalid_element_index);
LA_IGNORE_ARRAY_BOUNDS_BEGIN
AffineTransform t =
convert_transform_ufbx_to_lagrange<AffineTransform>(node->node_to_world);
LA_IGNORE_ARRAY_BOUNDS_END
lscene.add_instance({Index(mesh_idx), t});
}
}
Expand Down

0 comments on commit c2681f7

Please sign in to comment.