Fix crash when reimporting animation with translation set

#2445
This commit is contained in:
Wojtek Figat
2024-04-15 13:03:11 +02:00
parent 56d3b4f012
commit 00492a33a3

View File

@@ -1248,7 +1248,7 @@ bool ModelTool::ImportModel(const String& path, ModelData& data, Options& option
}
// Apply the import transformation
if (!importTransform.IsIdentity())
if (!importTransform.IsIdentity() && data.Nodes.HasItems())
{
if (options.Type == ModelType::SkinnedModel)
{