aboutsummaryrefslogtreecommitdiff
path: root/editor/plugins/asset_library_editor_plugin.cpp
diff options
context:
space:
mode:
authorRémi Verschelde2018-02-23 19:48:49 +0100
committerHein-Pieter van Braam2018-02-24 01:34:34 +0100
commitd79a7a27735fde30a843bbd931a663ffaa5884c9 (patch)
tree23cf2551b422ba9e4508ae38f900030841748fd3 /editor/plugins/asset_library_editor_plugin.cpp
parent05fec82f313b31d3a5cbdcd8a25afcddfbef424a (diff)
downloadgodot-d79a7a27735fde30a843bbd931a663ffaa5884c9.tar.gz
godot-d79a7a27735fde30a843bbd931a663ffaa5884c9.tar.zst
godot-d79a7a27735fde30a843bbd931a663ffaa5884c9.zip
Diffstat (limited to 'editor/plugins/asset_library_editor_plugin.cpp')
-rw-r--r--editor/plugins/asset_library_editor_plugin.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/editor/plugins/asset_library_editor_plugin.cpp b/editor/plugins/asset_library_editor_plugin.cpp
index b8bf2b97f..76254187a 100644
--- a/editor/plugins/asset_library_editor_plugin.cpp
+++ b/editor/plugins/asset_library_editor_plugin.cpp
@@ -30,11 +30,10 @@
#include "asset_library_editor_plugin.h"
+#include "core/io/json.h"
+#include "core/version.h"
#include "editor_node.h"
#include "editor_settings.h"
-#include "io/json.h"
-
-#include "version_generated.gen.h"
void EditorAssetLibraryItem::configure(const String &p_title, int p_asset_id, const String &p_category, int p_category_id, const String &p_author, int p_author_id, int p_rating, const String &p_cost) {
@@ -877,7 +876,8 @@ void EditorAssetLibrary::_search(int p_page) {
}
args += String() + "sort=" + sort_key[sort->get_selected()];
- args += "&godot_version=" + itos(VERSION_MAJOR) + "." + itos(VERSION_MINOR);
+ // We use the "branch" version, i.e. major.minor, as patch releases should be compatible
+ args += "&godot_version=" + String(VERSION_BRANCH);
String support_list;
for (int i = 0; i < SUPPORT_MAX; i++) {