From 27aab61d62ca6bd04556c623140d38761edaf56c Mon Sep 17 00:00:00 2001 From: Selmar Kok Date: Fri, 30 Nov 2018 18:01:31 +0100 Subject: [PATCH] Fix prettyprint to really not print pretty --- tiny_gltf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tiny_gltf.h b/tiny_gltf.h index d439746..fb2719b 100644 --- a/tiny_gltf.h +++ b/tiny_gltf.h @@ -4815,7 +4815,7 @@ bool TinyGLTF::WriteGltfSceneToFile(Model *model, const std::string &filename, if (writeBinary) { WriteBinaryGltfFile(filename, output.dump()); } else { - WriteGltfFile(filename, output.dump(prettyPrint ? 2 : 0)); + WriteGltfFile(filename, output.dump(prettyPrint ? 2 : -1)); } return true;