You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-22 15:06:45 +00:00
Merge pull request #10254 from marcelofg55/master
Added notification const NOTIFICATION_WM_ABOUT
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user