| 318 | } |
| 319 | |
| 320 | Dictionary EditorData::get_editor_plugin_states() const { |
| 321 | Dictionary metadata; |
| 322 | for (int i = 0; i < editor_plugins.size(); i++) { |
| 323 | Dictionary state = editor_plugins[i]->get_state(); |
| 324 | if (state.is_empty()) { |
| 325 | continue; |
| 326 | } |
| 327 | metadata[editor_plugins[i]->get_plugin_name()] = state; |
| 328 | } |
| 329 | |
| 330 | return metadata; |
| 331 | } |
| 332 | |
| 333 | Dictionary EditorData::get_scene_editor_states(int p_idx) const { |
| 334 | ERR_FAIL_INDEX_V(p_idx, edited_scene.size(), Dictionary()); |
no test coverage detected