Add EditorPlugin.build() build callbacks

This commit is contained in:
Will Nations
2018-01-08 09:55:22 -06:00
parent 1fea0adc5c
commit 732a877b21
5 changed files with 37 additions and 4 deletions

View File

@@ -412,6 +412,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;