| 21 | namespace mesh_skeleton |
| 22 | { |
| 23 | static s32 parse_internal(AnimationSkeleton &s, Buffer &buf, CompileOptions &opts) |
| 24 | { |
| 25 | TempAllocator4096 ta; |
| 26 | JsonObject obj(ta); |
| 27 | RETURN_IF_ERROR(sjson::parse(obj, buf)); |
| 28 | |
| 29 | DynamicString source(ta); |
| 30 | RETURN_IF_ERROR(sjson::parse_string(source, obj["source"])); |
| 31 | |
| 32 | RETURN_IF_FILE_MISSING(MESH_SKELETON, source.c_str(), opts); |
| 33 | Buffer fbx_buf = opts.read(source.c_str()); |
| 34 | return fbx::parse(s, fbx_buf, opts); |
| 35 | } |
| 36 | |
| 37 | s32 parse(AnimationSkeleton &s, const char *path, CompileOptions &opts) |
| 38 | { |
no test coverage detected