Skip to content

4.5.beta1 Error when initializing resources via inspector #107745

Closed
@TemporalCatcher

Description

@TemporalCatcher

Tested versions

Reproducible in: 4.5.beta1
Not reproducible in: 4.5.dev5

System information

Windows 11 - Godot 4.5.beta1

Issue description

When I initialize a new resource variable in the inspector after previously initializing the variable on the same load, Godot spits out this error:
ERROR: Another resource is loaded from path '::' (possible cyclic resource inclusion).

the '::' would be an address and file of the current scene/resource. So if I had a saved scene at res://sprite_2d.tscn and produced the error in the file it will produce the error:
ERROR: Another resource is loaded from path 'res://sprite_2d.tscn::' (possible cyclic resource inclusion).

Steps to reproduce

  1. Open any project, or even create a new one
  2. Create a new Sprite2D scene
  3. In the inspector > Texture, Select CanvasTexture (or any texture) - No Error
  4. In the inspector > Texture, Select CanvasTexture again (or any other texture) - Error
  5. Save the scene and Reload
  6. Do Step 3 and 4. It should yield same result as 3 and 4 respectively.

Sprite2D is just an example, any node/resource that has a resource variable that you can initialize should produce the error.
It must be under New, if you load a resource, it will not spit out the error.

Minimal reproduction project (MRP)

N/A

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Not Critical

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions