Skip to content

Commit

Permalink
Export/import GLTF with a 1m scale again.
Browse files Browse the repository at this point in the history
  • Loading branch information
kythyria committed Nov 20, 2020
1 parent 10b160c commit 5ddcbfa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion PD2ModelParser/Exporters/GltfExporter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public static string ExportFile(FullModelData data, string path, bool binary)
/// See the remarks of <see cref="PD2ModelParser.Importers.GltfImporter.scaleFactor"/>
/// for why the implementation here works.
/// </remarks>
float scaleFactor = 1;
float scaleFactor = 0.01f;

GLTF.ModelRoot Convert(FullModelData data)
{
Expand Down
2 changes: 1 addition & 1 deletion PD2ModelParser/Importers/GltfImporter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public static void Import(FullModelData fmd, string path, bool createModels, Fun
/// all we need to do is 1) scale every mesh on import, and 2) twiddle the translation
/// component of every node on import.
/// </remarks>
float scaleFactor = 1;
float scaleFactor = 100;

public GltfImporter(FullModelData data)
{
Expand Down

0 comments on commit 5ddcbfa

Please sign in to comment.