Merge pull request #15489 from willnationsdev/gdnative-hook
Add EditorPlugin.build() build callbacks
This commit is contained in:
commit
8a9e7ab6a6
5 changed files with 37 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue