From 0c2c950a8ccae78647565697d5a9055e257ebb95 Mon Sep 17 00:00:00 2001 From: lisyarus Date: Sun, 26 Mar 2023 00:12:09 +0300 Subject: [PATCH] Fix default scale when parsing glTF --- libs/gfx/source/gltf_parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/gfx/source/gltf_parser.cpp b/libs/gfx/source/gltf_parser.cpp index a642d5de..83981fe4 100644 --- a/libs/gfx/source/gltf_parser.cpp +++ b/libs/gfx/source/gltf_parser.cpp @@ -114,7 +114,7 @@ namespace psemek::gfx target.rotation[i] = rotation[i].GetFloat(); } - target.scale = {0.f, 0.f, 0.f}; + target.scale = {1.f, 1.f, 1.f}; if (node.HasMember("scale")) { auto const & scale = node["scale"].GetArray();