Skip to content

Commit

Permalink
Add support for batch conversion and for querying file formats
Browse files Browse the repository at this point in the history
  • Loading branch information
BobbyAnguelov committed Mar 29, 2020
1 parent 69fd4a7 commit b3e8f2d
Show file tree
Hide file tree
Showing 7 changed files with 440 additions and 124 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*.ipch
Browse.VC.db
Browse.VC.opendb
.suo
32 changes: 27 additions & 5 deletions FbxFormatConverter.args.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,43 @@
"FileVersion": 2,
"Id": "9e46203a-785a-41a3-bd18-2de2a7a7e4d7",
"Items": [
{
"Id": "048f9f3d-b4f7-421a-88a2-8208d935e75d",
"Command": "",
"Items": [
{
"Id": "02d89d7e-4960-4457-bcb6-3425ba20ab07",
"Command": "-q blah.fbx"
},
{
"Id": "28299385-031f-4af4-91dd-1c590319b3ef",
"Command": "-q SK_Chr_Attach_Female_Armor_02.fbx"
},
{
"Id": "c55eea3c-9a11-4ef5-b3c6-dbf81f43e261",
"Command": "-q TestData"
}
]
},
{
"Id": "5fa48bfb-6393-481a-b2ab-c0bd71ed50f1",
"Command": "",
"Items": [
{
"Id": "5ae255c1-876e-4bcd-b400-edd0be3b171f",
"Command": "-i TestFile.fbx"
"Command": "-c SK_Chr_Attach_Female_Armor_02.fbx"
},
{
"Id": "778e8d89-1616-468a-a9b1-623270e645a3",
"Command": "-o TestFileOut.fbx"
},
{
"Id": "12a719b6-1313-4bc5-802f-5255a8f72766",
"Command": "-f binary"
"Command": "-binary"
},
{
"Id": "d8f98b79-6ee4-4bf0-bc49-bf92c8666b44",
"Command": "-ascii"
}
]
},
Expand All @@ -26,15 +48,15 @@
"Items": [
{
"Id": "5a09faa8-7239-44a1-bd45-ab3d7e42064b",
"Command": "-i TestFileOut.fbx"
"Command": "-c TestData"
},
{
"Id": "730b2ceb-ba4c-4251-9406-2251cb22ba37",
"Command": "-o TestFileOut2.fbx"
"Command": "-o Converted.fbx"
},
{
"Id": "289c0524-0c30-4d5a-8195-359af124689c",
"Command": "-f ascii"
"Command": "-ascii"
}
]
}
Expand Down
2 changes: 2 additions & 0 deletions FbxFormatConverter.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@
<PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
<TreatWarningAsError>true</TreatWarningAsError>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
Expand Down Expand Up @@ -139,6 +140,7 @@
<PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<TreatWarningAsError>true</TreatWarningAsError>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
Expand Down
8 changes: 4 additions & 4 deletions FbxFormatConverter.vcxproj.user
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
<ShowAllFiles>true</ShowAllFiles>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<LocalDebuggerCommandArguments>-i TestFileOut.fbx -o TestFileOut2.fbx -f ascii</LocalDebuggerCommandArguments>
<RemoteDebuggerCommandArguments>-i TestFileOut.fbx -o TestFileOut2.fbx -f ascii</RemoteDebuggerCommandArguments>
<LocalDebuggerCommandArguments>-c TestData -o Converted.fbx -ascii</LocalDebuggerCommandArguments>
<RemoteDebuggerCommandArguments>-c TestData -o Converted.fbx -ascii</RemoteDebuggerCommandArguments>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<LocalDebuggerCommandArguments>-i TestFileOut.fbx -o TestFileOut2.fbx -f ascii</LocalDebuggerCommandArguments>
<RemoteDebuggerCommandArguments>-i TestFileOut.fbx -o TestFileOut2.fbx -f ascii</RemoteDebuggerCommandArguments>
<LocalDebuggerCommandArguments>-c TestData -o Converted.fbx</LocalDebuggerCommandArguments>
<RemoteDebuggerCommandArguments>-c TestData -o Converted.fbx</RemoteDebuggerCommandArguments>
</PropertyGroup>
</Project>
2 changes: 1 addition & 1 deletion cmdParser.h
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ namespace cli {
}
else if ( current == nullptr )
{
error << no_default();
//error << no_default();
return false;
}
else
Expand Down
Loading

0 comments on commit b3e8f2d

Please sign in to comment.