From 65cc56c35da357ac7799ed9616aba4898f17f232 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Mon, 13 Nov 2017 13:36:09 -0300 Subject: [PATCH] Do not send NOTIFICATION_PREDELETE to scripts, as it can cause problmes in garbage collected languages. Closes #6784 --- core/object.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/object.cpp b/core/object.cpp index 823cbe14d4..4284266f20 100644 --- a/core/object.cpp +++ b/core/object.cpp @@ -848,7 +848,7 @@ void Object::notification(int p_notification, bool p_reversed) { _notificationv(p_notification, p_reversed); - if (script_instance) { + if (script_instance && p_notification != NOTIFICATION_PREDELETE) { script_instance->notification(p_notification); } }