Skip to content

Commit

Permalink
Export update
Browse files Browse the repository at this point in the history
Export update. .gltf support, removed .obj exporter.
  • Loading branch information
Trololp authored Oct 13, 2021
1 parent c56dfee commit ea684c3
Show file tree
Hide file tree
Showing 10 changed files with 3,275 additions and 406 deletions.
5 changes: 3 additions & 2 deletions AVP2010ModelViewer/Console.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ VIEWER_CONSOLE_ERROR_TYPE Console::Detect_and_execute_command()
VIEWER_CONSOLE_ARG argtype = (pArgschema) ? pArgschema[0] : CONARG_END;
char* curr_p = CurrentLine + cmd_name_size;
char* end_p = CurrentLine + 255;
//char* str_arg_p = CurrentLine;
int i = 0;


Expand Down Expand Up @@ -299,8 +300,8 @@ VIEWER_CONSOLE_ERROR_TYPE Console::Detect_and_execute_command()
((float*)args)[0] = (float)strtof(curr_p, NULL);
break;
case CONARG_STR:
//str_p = strchr(CurrentLine + cmd_name_size + 1, ' '); // to do make str arg parsing
//
//str_arg_p = strrchr(CurrentLine, ' ');
((char**)args)[0] = curr_p;
break;
default:
dbgprint("Console", "bug in ARG parse %d \n", (*it)->argtype);
Expand Down
4 changes: 2 additions & 2 deletions AVP2010ModelViewer/Drawable_info.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ void Reqursive_update_lines_skeleton(model_skeleton* skl, DWORD index, XMVECTOR
int i = 1;
do
{
if (skl->pBones[i].num == index)
if (skl->pBones[i].parent_bone_id == index)
Reqursive_update_lines_skeleton(skl, i, pos, skl_lines);
i++;
} while (i < skl->amount_bones);
Expand Down Expand Up @@ -98,7 +98,7 @@ void Reqursive_make_lines_skeleton(model_skeleton* skl, DWORD index, XMVECTOR pr
int i = 1;
do
{
if (skl->pBones[i].num == index)
if (skl->pBones[i].parent_bone_id == index)
Reqursive_make_lines_skeleton(skl, i, pos, skl_lines);
i++;
} while (i < skl->amount_bones);
Expand Down
Loading

0 comments on commit ea684c3

Please sign in to comment.