Replace GDVIRTUAL_CALL with GDVIRTUAL_REQUIRED_CALL where applicable
This commit is contained in:
parent
a6c0c90058
commit
83ef789745
3 changed files with 25 additions and 75 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue