Skip to content

Script/path is not saved when saving a GDScript object as a sub resource with ResourceSaver #952

Open
@paczek654321

Description

@paczek654321

Tested versions

v4.3.stable.official [a06b0a0]

System information

Redot v4.3.stable - Arch Linux #1 ZEN SMP PREEMPT_DYNAMIC Sat, 18 Jan 2025 02:26:52 +0000 - X11 - Vulkan (Forward+) - dedicated AMD Radeon RX 7700 XT (RADV NAVI32) - AMD Ryzen 7 5700X 8-Core Processor (16 Threads)

Issue description

If a resource that has export variables with custom class types those properties are not loaded properly with load() (Previously saved with ResourceSaver). Seems to be related to godotengine/godot#32856

Steps to reproduce

  • Make 2 custom resources
  • Have one of them have a variable with the other one as its type
  • Save the first resource
  • Load it back
  • See that the custom class property didn't load correctly

Minimal reproduction project (MRP)

resourcesaverbugreproduction.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Open

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions