From c178e17110b535dd3d0fd2cc090b88b8e3b9050e Mon Sep 17 00:00:00 2001 From: Ivan Gagis Date: Thu, 14 Nov 2024 00:45:04 +0200 Subject: [PATCH] add TODO:s --- src/ruis/render/scene/gltf_loader.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ruis/render/scene/gltf_loader.cpp b/src/ruis/render/scene/gltf_loader.cpp index b52d414..1a7941a 100644 --- a/src/ruis/render/scene/gltf_loader.cpp +++ b/src/ruis/render/scene/gltf_loader.cpp @@ -341,12 +341,15 @@ utki::shared_ref gltf_loader::read_node(const jsondom::value& json_node) // TODO: support loading "matrix" + // TODO: check if "mesh" is present before reading it int mesh_index = read_int(json_node, "mesh"); + // TODO: check if mesh_index is within the this->meshes array + child_indices.push_back(read_uint_array(json_node, "children")); return utki::make_shared( std::move(name), // - mesh_index >= 0 ? meshes[mesh_index].to_shared_ptr() : nullptr, + mesh_index >= 0 ? this->meshes[mesh_index].to_shared_ptr() : nullptr, std::move(transformation) ); }