Skip to content

ResourceName not saved #82333

Closed
Closed
@BorisTheBrave

Description

@BorisTheBrave

Godot version

v4.1.1.stable.mono.official [bd6af8e]

System information

Godot v4.1.1.stable.mono - Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1070 (NVIDIA; 30.0.14.9613) - Intel(R) Core(TM) i5-8400 CPU @ 2.80GHz (6 Threads)

Issue description

Setting the resource name of a packed scene does nothing. It displays in the editor, but checking the resource_name field just gives "" and if you restart the editor your setting is gone.

This is rather unreliably to reproduce, but I eventually got the attached minimal project where it happens reliably.

This is probably the cause of #56177 and #41619, but it's hard to be sure.

Steps to reproduce

  1. Open attached project
  2. open test_scene, select the Sprite2d node in editor.
  3. Enter some_value in the name of the resource of the asdf field of the attached script.
    image
  4. Run scene.
    Expected: Console Prints "resource_name is some_value"
    Actual: Conole Prints "resource_name is "
  5. Save everything, restart the editor
  6. inspect the Sprite2d again
    Expected: Resource name should be some_value
    Actual: Resource name is empty

NB: Saving the scene or saving the resource seem to make no difference.

Minimal reproduction project

ResourceNameIssue.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions