EditorSceneFormatImporterGLTF: check if "animation/trimming" parameter from import settings exists
Fixes godotengine#69625
This commit is contained in:
parent
1db23e472b
commit
627b9ca049
1 changed files with 6 additions and 1 deletions
|
@ -63,7 +63,12 @@ Node *EditorSceneFormatImporterGLTF::import_scene(const String &p_path, uint32_t
|
||||||
if (p_options.has("animation/import")) {
|
if (p_options.has("animation/import")) {
|
||||||
state->set_create_animations(bool(p_options["animation/import"]));
|
state->set_create_animations(bool(p_options["animation/import"]));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (p_options.has("animation/trimming")) {
|
||||||
return doc->generate_scene(state, (float)p_options["animation/fps"], (bool)p_options["animation/trimming"]);
|
return doc->generate_scene(state, (float)p_options["animation/fps"], (bool)p_options["animation/trimming"]);
|
||||||
|
} else {
|
||||||
|
return doc->generate_scene(state, (float)p_options["animation/fps"], false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // TOOLS_ENABLED
|
#endif // TOOLS_ENABLED
|
||||||
|
|
Loading…
Reference in a new issue