You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-12 13:20:55 +00:00
Merge pull request #15489 from willnationsdev/gdnative-hook
Add EditorPlugin.build() build callbacks
This commit is contained in:
@@ -4271,12 +4271,21 @@ EditorBuildCallback EditorNode::build_callbacks[EditorNode::MAX_BUILD_CALLBACKS]
|
||||
|
||||
bool EditorNode::call_build() {
|
||||
|
||||
for (int i = 0; i < build_callback_count; i++) {
|
||||
if (!build_callbacks[i]())
|
||||
return false;
|
||||
bool builds_successful = true;
|
||||
|
||||
for (int i = 0; i < build_callback_count && builds_successful; i++) {
|
||||
if (!build_callbacks[i]()) {
|
||||
ERR_PRINT("A Godot Engine build callback failed.");
|
||||
builds_successful = false;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
if (builds_successful && !editor_data.call_build()) {
|
||||
ERR_PRINT("An EditorPlugin build callback failed.");
|
||||
builds_successful = false;
|
||||
}
|
||||
|
||||
return builds_successful;
|
||||
}
|
||||
|
||||
void EditorNode::_inherit_imported(const String &p_action) {
|
||||
|
||||
Reference in New Issue
Block a user