1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-14 13:41:12 +00:00

Replace GDVIRTUAL_CALL with GDVIRTUAL_REQUIRED_CALL where applicable

This commit is contained in:
Thaddeus Crews
2023-12-14 13:22:40 -06:00
parent a6c0c90058
commit 83ef789745
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() {