Skip to content

Can't get TypedDictionary value right. #1905

Description

@CsloudX

Godot version

4.5.1

godot-cpp version

4.5.1

System information

Windows10, 64bit

Issue description

I'm declare a XCanOpenOD class like this:

class XCanOpenOD : public RefCounted {
	GDCLASS(XCanOpenOD, RefCounted);
...other codes...
}

and delcare a member like this:

Image

in my code, i'm add a ref XCanOpenOD to object_dictionary, and then read it:

Image Image

look the od_object and test_obj.

test_obj not right , so my application crashed.

was am I used TypedDictionary wrong?

Steps to reproduce

/

Minimal reproduction project

/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions