summaryrefslogtreecommitdiffstats
path: root/core/object/object.h
diff options
context:
space:
mode:
authorDavid Snopek <dsnopek@gmail.com>2023-06-09 12:30:39 -0500
committerDavid Snopek <dsnopek@gmail.com>2023-06-09 13:41:57 -0500
commit36f4b99638af24fc9d64563f4111ec8c13243cae (patch)
tree2d9d20b282641b366998cea4ce1b9c6230708644 /core/object/object.h
parent72b59325cf7beba7e6e9170cf6023a079fd58672 (diff)
downloadredot-engine-36f4b99638af24fc9d64563f4111ec8c13243cae.tar.gz
Fix wrapping Object's in GDExtension that aren't exposed
Diffstat (limited to 'core/object/object.h')
-rw-r--r--core/object/object.h12
1 files changed, 1 insertions, 11 deletions
diff --git a/core/object/object.h b/core/object/object.h
index 6f626b0ed0..a3e9d025ea 100644
--- a/core/object/object.h
+++ b/core/object/object.h
@@ -800,17 +800,7 @@ public:
return *_class_name_ptr;
}
- _FORCE_INLINE_ const StringName &get_class_name_for_extension(const GDExtension *p_library) const {
- // Only return the class name per the extension if it matches the given p_library.
- if (_extension && _extension->library == p_library) {
- return _extension->class_name;
- }
- // Otherwise, return the name of the built-in class.
- if (unlikely(!_class_name_ptr)) {
- return *_get_class_namev();
- }
- return *_class_name_ptr;
- }
+ StringName get_class_name_for_extension(const GDExtension *p_library) const;
/* IAPI */