Fix default scale when parsing glTF
This commit is contained in:
parent
d930ef6d93
commit
0c2c950a8c
1 changed files with 1 additions and 1 deletions
|
|
@ -114,7 +114,7 @@ namespace psemek::gfx
|
||||||
target.rotation[i] = rotation[i].GetFloat();
|
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"))
|
if (node.HasMember("scale"))
|
||||||
{
|
{
|
||||||
auto const & scale = node["scale"].GetArray();
|
auto const & scale = node["scale"].GetArray();
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue