Skip to content

Commit

Permalink
Merge pull request #95730 from voidedWarranties/fix_reload_scripts_bind
Browse files Browse the repository at this point in the history
Fix virtual binding for `ScriptLanguageExtension::_reload_scripts`
  • Loading branch information
akien-mga committed Aug 19, 2024
2 parents 10b91ee + d65ea6f commit ab2b06b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions core/object/script_language_extension.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ void ScriptLanguageExtension::_bind_methods() {
GDVIRTUAL_BIND(_debug_get_current_stack_info);

GDVIRTUAL_BIND(_reload_all_scripts);
GDVIRTUAL_BIND(_reload_scripts, "scripts", "soft_reload");
GDVIRTUAL_BIND(_reload_tool_script, "script", "soft_reload");

GDVIRTUAL_BIND(_get_recognized_extensions);
Expand Down
7 changes: 7 additions & 0 deletions doc/classes/ScriptLanguageExtension.xml
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,13 @@
<description>
</description>
</method>
<method name="_reload_scripts" qualifiers="virtual">
<return type="void" />
<param index="0" name="scripts" type="Array" />
<param index="1" name="soft_reload" type="bool" />
<description>
</description>
</method>
<method name="_reload_tool_script" qualifiers="virtual">
<return type="void" />
<param index="0" name="script" type="Script" />
Expand Down

0 comments on commit ab2b06b

Please sign in to comment.