Skip to content

Problems with hot reload #1573

Closed
Closed
@aljen

Description

@aljen

Godot version

master, b6223c0df0300ba2db17b5742c349f13c33f8884

godot-cpp version

master, d477589

System information

macOS Sonoma 14.6.1, M3 Max

Issue description

I had to add this in my cmake to both my extension and godot-cpp to enable reload support. Without this, it was spamming that it detected extension was changed on disk, but was asking if reloading was supported and yes, GODOT_ENABLE_HOT_RELOAD was ON before including godot-cpp.

target_compile_definitions(godot-cpp
    PRIVATE
        HOT_RELOAD_ENABLED
)

Now that godot reloaded my extension, my custom node in the editor lost its properties. It is derived from Node3D and the correct type is shown when I hover that node in the scene tree, however custom properties are lost, and scripts are screaming that they can't find base methods from custom node.

image
image

Node in inspector after reload:
image

Any idea if is it me or something is broken, maybe it's apple specific problem?

Steps to reproduce

N/A

Minimal reproduction project

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis has been identified as a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions