[Editor] Add EditorPlugin::scene_saved signal (3.x backport)

Matches the `EditorNode` one for parity with the exposed
`resource_saved` signal

3.x backport: Adjusted documentation slightly, backported to 3.x branch

Co-authored-by: t20kdc <asdd2808@gmail.com>
This commit is contained in:
A Thousand Ships
2024-01-18 13:06:48 +01:00
committed by t20kdc
parent 36a01852a7
commit 45d1948b64
6 changed files with 22 additions and 1 deletions

View File

@@ -376,6 +376,12 @@ void EditorData::notify_resource_saved(const Ref<Resource> &p_resource) {
}
}
void EditorData::notify_scene_saved(const String &p_path) {
for (int i = 0; i < editor_plugins.size(); i++) {
editor_plugins[i]->notify_scene_saved(p_path);
}
}
void EditorData::clear_editor_states() {
for (int i = 0; i < editor_plugins.size(); i++) {
editor_plugins[i]->clear();