Skip to content

Instantly share code, notes, and snippets.

@Miouyouyou
Last active December 5, 2020 21:06
Show Gist options
  • Save Miouyouyou/47bbb91381945f244fb158c7359589ea to your computer and use it in GitHub Desktop.
Save Miouyouyou/47bbb91381945f244fb158c7359589ea to your computer and use it in GitHub Desktop.
wrong changes
static void _add_lower_tree(
Ref<GLTFState> const state,
GLTFNodeIndex const node_name_i,
Map<String, GLTFNodeIndex> * __restrict const name_gltf_node)
{
Ref<GLTFNode> node = state->nodes[node_name_i];
name_gltf_node->insert(node->get_name(), node_name_i);
Vector<int> children = node->get_children();
for (int i = 0; i < children.size(); i++) {
_add_lower_tree(state, children[i], name_gltf_node);
}
}
/* Error GLTFDocument::_serialize_skins(Ref<GLTFState> state) {
...
*/
Map<String, GLTFNodeIndex> name_gltf_node;
_add_lower_tree(state, node_i, &name_gltf_node);
/*for (int32_t node_name_i = node_index; node_name_i < state->nodes.size(); node_name_i++) {
print_line("Inserting into node name : " + state->nodes[node_name_i]->get_name() + " Index : " + itos(node_name_i));
name_gltf_node.insert(state->nodes[node_name_i]->get_name(), node_name_i);
}*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment