mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
Merge pull request #91634 from jogly/gilley/fix-anim-loop-import
Fix animation loop import hints becoming lost
This commit is contained in:
commit
3619c68856
1 changed files with 6 additions and 0 deletions
|
|
@ -343,6 +343,12 @@ void SceneImportSettingsDialog::_fill_animation(Tree *p_tree, const Ref<Animatio
|
|||
ad.animation = p_anim;
|
||||
|
||||
_load_default_subresource_settings(ad.settings, "animations", p_name, ResourceImporterScene::INTERNAL_IMPORT_CATEGORY_ANIMATION);
|
||||
if (!ad.settings.has("settings/loop_mode")) {
|
||||
// Update the loop mode to match detected mode (from import hints).
|
||||
// This is necessary on the first import of a scene, otherwise the
|
||||
// default (0/NONE) is set when filling out defaults.
|
||||
ad.settings["settings/loop_mode"] = p_anim->get_loop_mode();
|
||||
}
|
||||
|
||||
animation_map[p_name] = ad;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue