[Editor] Add EditorPlugin::scene_saved signal

Matches the `EditorNode` one for parity with the exposed
`resource_saved` signal
This commit is contained in:
A Thousand Ships 2024-01-18 13:06:48 +01:00
parent 0bcc0e92b3
commit 97b469c46d
No known key found for this signature in database
GPG key ID: 2033189A662F8BD7
6 changed files with 22 additions and 2 deletions

View file

@ -1805,6 +1805,7 @@ void EditorNode::_save_scene(String p_file, int idx) {
// This needs to be emitted before saving external resources.
emit_signal(SNAME("scene_saved"), p_file);
editor_data.notify_scene_saved(p_file);
_save_external_resources();
saving_scene = p_file; // Some editors may save scenes of built-in resources as external data, so avoid saving this scene again.