summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorGilles Roudière <gilles.roudiere@gmail.com>2022-10-26 15:55:38 +0200
committerGilles Roudière <gilles.roudiere@gmail.com>2022-12-01 17:28:24 +0100
commit36bcb8256543fdad71d3f6c7179584ff2591cac6 (patch)
tree15086a8a9f6fe281a291cd52474fb1740af02096 /editor
parenteb555d7559371963d846811260a11fb07dd72a3d (diff)
Remove uncessecary checks when exporting gdextension binaries
Diffstat (limited to 'editor')
-rw-r--r--editor/plugins/gdextension_export_plugin.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/editor/plugins/gdextension_export_plugin.h b/editor/plugins/gdextension_export_plugin.h
index c5f7d2a047..54f7ece1ee 100644
--- a/editor/plugins/gdextension_export_plugin.h
+++ b/editor/plugins/gdextension_export_plugin.h
@@ -72,9 +72,8 @@ void GDExtensionExportPlugin::_export_file(const String &p_path, const String &p
if (all_tags_met) {
String library_path = config->get_value("libraries", E);
- if (!library_path.begins_with("res://")) {
- print_line("Skipping export of out-of-project library " + library_path);
- continue;
+ if (library_path.is_relative_path()) {
+ library_path = p_path.get_base_dir().path_join(library_path);
}
add_shared_object(library_path, tags);
@@ -131,9 +130,8 @@ void GDExtensionExportPlugin::_export_file(const String &p_path, const String &p
for (const Variant *key = dependency.next(nullptr); key; key = dependency.next(key)) {
String library_path = *key;
String target_path = dependency[*key];
- if (!library_path.begins_with("res://")) {
- print_line("Skipping export of out-of-project library " + library_path);
- continue;
+ if (library_path.is_relative_path()) {
+ library_path = p_path.get_base_dir().path_join(library_path);
}
add_shared_object(library_path, tags, target_path);
}