Last active
December 5, 2020 21:06
-
-
Save Miouyouyou/47bbb91381945f244fb158c7359589ea to your computer and use it in GitHub Desktop.
wrong changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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