MCPcopy Create free account
hub / github.com/crownengine/crown / parse_nodes

Function parse_nodes

src/resource/mesh_fbx.cpp:230–247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

228 }
229
230 s32 parse_nodes(Mesh &m, const ufbx_node_list *nodes, CompileOptions &opts)
231 {
232 for (size_t i = 0; i < nodes->count; ++i) {
233 const ufbx_node *node = nodes->data[i];
234
235 Node new_node(default_allocator());
236
237 DynamicString node_name(default_allocator());
238 node_name.set(node->name.data, (u32)node->name.length);
239
240 s32 err = fbx::parse_node(new_node, node);
241 ENSURE_OR_RETURN(FBX_RESOURCE, err == 0, opts);
242
243 hash_map::set(m._nodes, node_name, new_node);
244 }
245
246 return 0;
247 }
248
249 s32 parse(Mesh &m, Buffer &buf, CompileOptions &opts)
250 {

Callers 1

parseFunction · 0.70

Calls 3

setClass · 0.85
parse_nodeFunction · 0.70
setMethod · 0.45

Tested by

no test coverage detected