Skip to content

Commit

Permalink
Add checkbox to disable importTransforms
Browse files Browse the repository at this point in the history
  • Loading branch information
segabl committed Aug 27, 2023
1 parent 3f8b47d commit 6f18684
Show file tree
Hide file tree
Showing 3 changed files with 280 additions and 253 deletions.
4 changes: 3 additions & 1 deletion PD2ModelParser/Importers/GltfImporter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ public static void Import(FullModelData fmd, string path, bool createModels, Fun
string importTransforms = opts.GetOption("import-transforms");
if (importTransforms != null)
{
importer.importTransforms = false;
// Previous default behavior was disabling importTransforms regardless of what value was provided
// Since people mostly used to set it to "false" via model script, make the default on parse fail "false"
bool.TryParse(importTransforms, out importer.importTransforms);
}

importer.ImportTree(gltf, createModels, parentFinder);
Expand Down
Loading

0 comments on commit 6f18684

Please sign in to comment.