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

Merge pull request #15489 from willnationsdev/gdnative-hook

Add EditorPlugin.build() build callbacks
This commit is contained in:
Max Hilbrunner
2018-05-26 19:01:45 +02:00
committed by GitHub
5 changed files with 37 additions and 4 deletions

View File

@@ -420,6 +420,18 @@ void EditorData::paste_object_params(Object *p_object) {
}
}
bool EditorData::call_build() {
bool result = true;
for (int i = 0; i < editor_plugins.size() && result; i++) {
result &= editor_plugins[i]->build();
}
return result;
}
UndoRedo &EditorData::get_undo_redo() {
return undo_redo;