GDExtension: Prevent breaking compatibility for unexposed classes that can only be created once

This commit is contained in:
David Snopek
2025-09-30 14:34:46 -05:00
parent 6e33e3b7af
commit 2c707a911f
4 changed files with 33 additions and 5 deletions

View File

@@ -330,6 +330,9 @@ struct ObjectGDExtension {
bool is_runtime = false;
bool is_placeholder = false;
#endif
#ifndef DISABLE_DEPRECATED
bool legacy_unexposed_class = false;
#endif // DISABLE_DEPRECATED
GDExtensionClassSet set;
GDExtensionClassGet get;
GDExtensionClassGetPropertyList get_property_list;