summaryrefslogtreecommitdiffstats
path: root/scene/main
diff options
context:
space:
mode:
authorMarcelo Fernandez <marcelofg55@gmail.com>2018-07-02 16:18:58 -0300
committerMarcelo Fernandez <marcelofg55@gmail.com>2018-07-02 16:18:58 -0300
commitdeebeb27424e63a9f30cb855a4e0d72ea586d1c9 (patch)
tree4e533db34687cf53a33a9392ebb13bbe872c56df /scene/main
parent2dc738ce2733757631a4ccf413a92411c4400246 (diff)
downloadredot-engine-deebeb27424e63a9f30cb855a4e0d72ea586d1c9.tar.gz
Add a new notification to detect crashes on native scripts
Diffstat (limited to 'scene/main')
-rw-r--r--scene/main/scene_tree.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/scene/main/scene_tree.cpp b/scene/main/scene_tree.cpp
index 8d6e57b335..5caba8ef20 100644
--- a/scene/main/scene_tree.cpp
+++ b/scene/main/scene_tree.cpp
@@ -656,6 +656,11 @@ void SceneTree::_notification(int p_notification) {
#endif
} break;
+ case NOTIFICATION_CRASH: {
+
+ get_root()->propagate_notification(p_notification);
+ } break;
+
default:
break;
};