Skip to content

Invisible file in hierarchy when creating Atlas #107499

Open
@NaejDoree

Description

@NaejDoree

Tested versions

Reproducible in 4.4.1
Reproducible in 4.3

System information

Windows 10

Issue description

Trying to create a new TextureAtlas from the import menu leads to creating a file that doesn't appear in the files hierarchy in godot.
The file reappears when switching windows, after godot re scans for new files.
It leads to an error message popping up long after the file appeared when clicking on the file that's supposed to be atlased, as follows:

  • on 4.4.1: ERROR: editor/editor_resource_preview.cpp:261 - Condition "!cache.has(p_path)" is true. Returning: Dictionary()
  • on 4.3: editor/editor_resource_preview.cpp:248 - Condition "!cache.has(p_path)" is true. Returning: Dictionary()

Steps to reproduce

In a fresh project with the godot icon:

  • Select the godot icon and go to the import tab
  • Switch its type to TextureAtlas
  • Use the file selector and enter a name of a non preexisting file
  • Hit reimport

There should be an error message and no file appears, meanwhile, a file has been created, its just not shown.
You can see that in two ways:

  • try to duplicate the godot icon an rename it as the same name as the file previously created, this will lead to godot telling you the file already exists but the file still won't appear,
  • navigate to the file in your OS's file explorer, but going back to godot after this will make the file appear.

Minimal reproduction project (MRP)

No need, you can use a fresh project, only the godot icon is required to make it work

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    For team assessment

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions