Merge pull request #708 from Zylann/fix_inheriting_class_with_namespace

pull/712/head
Rémi Verschelde 2022-02-21 11:27:31 +01:00 committed by GitHub
commit d154ffbe86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions

View File

@ -54,6 +54,10 @@ protected:
Wrapped(GodotObject *p_godot_object);
public:
static const char *get_class_static() {
return "Wrapped";
}
// Must be public but you should not touch this.
GodotObject *_owner = nullptr;
};
@ -102,7 +106,7 @@ public:
} \
\
static const char *get_parent_class_static() { \
return #m_inherits; \
return m_inherits::get_class_static(); \
} \
\
static GDNativeObjectPtr create(void *data) { \
@ -157,7 +161,7 @@ public:
} \
\
static const char *get_parent_class_static() { \
return #m_inherits; \
return m_inherits::get_class_static(); \
} \
\
static void *___binding_create_callback(void *p_token, void *p_instance) { \