summaryrefslogtreecommitdiff
path: root/scene/main
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2017-08-22 00:56:31 +0200
committerGitHub <noreply@github.com>2017-08-22 00:56:31 +0200
commit13f879587dd9bce59528e44b0faaf6e062f6d918 (patch)
treea46d8268b6a1cae06f6f163c304018b1e7680606 /scene/main
parent2cc83092498d3b82fa8a3aba37c32ad887d19c2c (diff)
parentaae29c7a0eace9ccfeb430c5a4ebd0c9a431e272 (diff)
Merge pull request #10254 from marcelofg55/master
Added notification const NOTIFICATION_WM_ABOUT
Diffstat (limited to 'scene/main')
-rw-r--r--scene/main/scene_tree.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/scene/main/scene_tree.cpp b/scene/main/scene_tree.cpp
index 66f3d7d627..da324c45a4 100644
--- a/scene/main/scene_tree.cpp
+++ b/scene/main/scene_tree.cpp
@@ -38,6 +38,7 @@
#include <stdio.h>
//#include "servers/spatial_sound_2d_server.h"
+#include "editor/editor_node.h"
#include "io/marshalls.h"
#include "io/resource_loader.h"
#include "scene/resources/material.h"
@@ -626,6 +627,19 @@ void SceneTree::_notification(int p_notification) {
} break;
+ case NOTIFICATION_WM_ABOUT: {
+
+#ifdef TOOLS_ENABLED
+ if (is_editor_hint()) {
+ EditorNode::get_singleton()->show_about();
+ } else {
+#endif
+ get_root()->propagate_notification(p_notification);
+#ifdef TOOLS_ENABLED
+ }
+#endif
+ } break;
+
default:
break;
};