Skip to content

[4.3] Resource::get_rid is not exposed as virtual #1640

Open

Description

@mohsenph69

Godot version

4.3

godot-cpp version

4.3

System information

Linux manjaro

Issue description

Resource::get_rid is not exposed as virtual, and that make it impossible to create a custom mesh!

Steps to reproduce

NOTHING

Minimal reproduction project

NOTHING

Activity

  1. dsnopek commented on Nov 13, 2024

    @dsnopek
    Collaborator

    The virtual function is Resource::_get_rid() (with an underscore)

  2. mohsenph69 commented on Nov 13, 2024

    @mohsenph69
    Author

    The virtual function is Resource::_get_rid() (with an underscore)

    Yeah with an underscore, it exist in GDScript but not GDExtension!

  3. dsnopek commented on Nov 13, 2024

    @dsnopek
    Collaborator

    Ah, I see, it's only in Godot master not 4.3. This was fixed in godotengine/godot#84944

    It would be theoretically possible to implement for 4.3, using GDExtensionClassCreationInfo::get_rid_func, but would require some custom code, since Resource::_get_rid() isn't a normal virtual function in 4.3 and earlier.

  4. added
    bug
    on Nov 13, 2024
  5. changed the title [-]Resource::get_rid is not exposed as virtual[/-] [+][4.3] Resource::get_rid is not exposed as virtual[/+] on Nov 13, 2024
  6. added this to the 4.3 milestone on Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions