1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-23 15:16:17 +00:00

Replace GDVIRTUAL_CALL with GDVIRTUAL_REQUIRED_CALL where applicable

(cherry picked from commit 83ef789745)
This commit is contained in:
Thaddeus Crews
2023-12-14 13:22:40 -06:00
committed by Rémi Verschelde
parent 360543361b
commit 93fcd9ce41
3 changed files with 25 additions and 75 deletions

View File

@@ -62,9 +62,7 @@ EditorInterface *EditorScript::get_editor_interface() const {
}
void EditorScript::run() {
if (!GDVIRTUAL_CALL(_run)) {
EditorNode::add_io_error(TTR("Couldn't run editor script, did you forget to override the '_run' method?"));
}
GDVIRTUAL_REQUIRED_CALL(_run);
}
void EditorScript::_bind_methods() {