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:
parent
307dfa9fe9
commit
81cac4907f
2 changed files with 9 additions and 1 deletions
|
|
@ -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());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue