Skip to content

Changing import type from "scene" to "animation library" on multiple selected files corrupts the .import files #107718

Open
@Azzara

Description

@Azzara

Tested versions

  • Reproducible in any Godot version from Godot 4.0.3-rc2 up to the newest Godot 4.5.beta1

System information

Windows 10, Godot 4.0.3 - 4.5.beta1

Issue description

There is a folder containing mutiple animation files in FBX (or GLTF) format - for example various Mixamo animations.
Selecting any of those files in the Godot File System and changing its import settings from "Scene" to "Animation Library" works correctly.
Selecting multiple files and changing this setting for all of them simultaneously appears to work fine but only the first file is modified correctly. All the other files get corrupted and their settings are lost.

I think I know what happens. The "animations" node of each .import file incorrectly inherits the animation names from the first file. The import settings are still there but trying to view them fails silently (since the animation name doesn't match) and all information appears to be lost.

Steps to reproduce

  1. Open the attached Godot project in any version of Godot 4.x, for example in Godot 4.4.1.
  2. Select one of the GLTF files and change its import mode from "scene" to "animation library".
  3. This should work. Nothing is lost and importing still works.
  4. Change it back to "scene". This should work correctly as well.
  5. Select both files and change the import from "scene" to "animation library".
  6. The first file still imports properly but the import settings of the second file have been corrupted.

Minimal reproduction project (MRP)

I downloaded two random animations from the free online library Mixamo, converted them to GLTF for compatibility reasons and put them in a new Godot project using Godot 4.0.
The problem is reproducible in all versions of Godot I tried up to and including the Godot 4.5 beta.
The problem is reproducible with FBX files as well as long as the animations have different names.

MultiSelectBug.zip

Metadata

Metadata

Assignees

Type

No type

Projects

Status

No status

Status

For team assessment

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions