You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Validate that Use Custom Build is enabled when Plugins are selected
Remove `GodotPayment` from the default build template
This commit is contained in:
@@ -1900,6 +1900,15 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
// Ensure that `Use Custom Build` is enabled if a plugin is selected.
|
||||
String enabled_plugins_names = get_plugins_names(get_enabled_plugins(p_preset));
|
||||
bool custom_build_enabled = p_preset->get("custom_template/use_custom_build");
|
||||
if (!enabled_plugins_names.empty() && !custom_build_enabled) {
|
||||
valid = false;
|
||||
err += TTR("\"Use Custom Build\" must be enabled to use the plugins.");
|
||||
err += "\n";
|
||||
}
|
||||
|
||||
r_error = err;
|
||||
return valid;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user