You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 12:50:35 +00:00
Do not send NOTIFICATION_PREDELETE to scripts, as it can cause problmes in garbage collected languages. Closes #6784
This commit is contained in:
@@ -848,7 +848,7 @@ void Object::notification(int p_notification, bool p_reversed) {
|
|||||||
|
|
||||||
_notificationv(p_notification, p_reversed);
|
_notificationv(p_notification, p_reversed);
|
||||||
|
|
||||||
if (script_instance) {
|
if (script_instance && p_notification != NOTIFICATION_PREDELETE) {
|
||||||
script_instance->notification(p_notification);
|
script_instance->notification(p_notification);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user