1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

GDScript: Don't add implicit constructor to the list of functions

So it's not shown on docs or when listing the methods. This also avoids
being able to call it using the `call()` function.
This commit is contained in:
George Marques
2022-06-17 14:48:07 -03:00
parent 307dfa9fe9
commit 81cac4907f
2 changed files with 9 additions and 1 deletions

View File

@@ -1254,6 +1254,10 @@ GDScript::~GDScript() {
memdelete(E.value);
}
if (implicit_initializer) {
memdelete(implicit_initializer);
}
if (GDScriptCache::singleton) { // Cache may have been already destroyed at engine shutdown.
GDScriptCache::remove_script(get_path());
}