summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2017-07-11 16:37:25 +0200
committerGitHub <noreply@github.com>2017-07-11 16:37:25 +0200
commit3741a576575f3fef4f7c743e90856240d9f47ffc (patch)
tree11a073ad528de287aa70859b8dd6cc34f9181bd2 /editor
parent98a9c8fc5f6590e8233e766ec05dab527d5343ac (diff)
parent5a9eb5ef58288506256998bcbc9c1fc20d4f50d1 (diff)
Merge pull request #9589 from Noshyaar/ref
Include Git hash in the engine
Diffstat (limited to 'editor')
-rw-r--r--editor/project_manager.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/editor/project_manager.cpp b/editor/project_manager.cpp
index a3d3d42110..e3f22c833e 100644
--- a/editor/project_manager.cpp
+++ b/editor/project_manager.cpp
@@ -49,6 +49,7 @@
#include "scene/gui/texture_rect.h"
#include "scene/gui/tool_button.h"
#include "version.h"
+#include "version_hash.gen.h"
class NewProjectDialog : public ConfirmationDialog {
@@ -1244,7 +1245,10 @@ ProjectManager::ProjectManager() {
top_hb->add_child(ccl);
top_hb->add_spacer();
l = memnew(Label);
- l->set_text("v" VERSION_MKSTRING);
+ String hash = String(VERSION_HASH);
+ if (hash.length() != 0)
+ hash = "." + hash.left(7);
+ l->set_text("v" VERSION_MKSTRING "" + hash);
//l->add_font_override("font",get_font("bold","Fonts"));
l->set_align(Label::ALIGN_CENTER);
top_hb->add_child(l);