Skip to content

Commit

Permalink
update obj io functions
Browse files Browse the repository at this point in the history
  • Loading branch information
igorseabra4 committed Apr 30, 2019
1 parent 1947bff commit 78f5ff3
Show file tree
Hide file tree
Showing 4 changed files with 221 additions and 247 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ private void buttonExport_Click(object sender, System.EventArgs e)
if (Path.GetExtension(a.FileName).ToLower() == ".obj")
{
if (asset.AHDR.assetType == HipHopFile.AssetType.BSP)
ConvertBSPtoOBJ(a.FileName, asset.GetRenderWareModelFile(), false);
ConvertBSPtoOBJ(a.FileName, asset.GetRenderWareModelFile(), true);
else
ConvertDFFtoOBJ(a.FileName, asset.GetRenderWareModelFile().GetAsRWSectionArray());
ConvertDFFtoOBJ(a.FileName, asset.GetRenderWareModelFile(), true);
}
else
File.WriteAllBytes(a.FileName, asset.AHDR.data);
Expand Down
2 changes: 1 addition & 1 deletion IndustrialPark/IndustrialPark.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
<None Include="Resources\importvcolorobj\importvcolorobj_v1.3.7.ms">
<None Include="Resources\importvcolorobj\importvcolorobj_v1.3.9.ms">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="Resources\Models\Box.mtl">
Expand Down
Loading

0 comments on commit 78f5ff3

Please sign in to comment.