diff options
author | Juan Linietsky <reduzio@gmail.com> | 2016-06-28 18:53:31 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2016-06-28 18:53:31 -0300 |
commit | fbdb7a947bd9d75ed6e2a86e58337ca4d47d085e (patch) | |
tree | faf271513a2ac273def1753fb4e00e88c3945f12 /tools/editor/editor_node.h | |
parent | 5065e46381814746eeddb4c44b5eb1540b0331f8 (diff) |
Editor properly reloads scenes if they changed on disk or were reimported
Diffstat (limited to 'tools/editor/editor_node.h')
-rw-r--r-- | tools/editor/editor_node.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/editor/editor_node.h b/tools/editor/editor_node.h index a0a03341fc..9b0edda75e 100644 --- a/tools/editor/editor_node.h +++ b/tools/editor/editor_node.h @@ -555,7 +555,7 @@ private: void _scene_tab_script_edited(int p_tab); Dictionary _get_main_scene_state(); - void _set_main_scene_state(Dictionary p_state); + void _set_main_scene_state(Dictionary p_state,Node* p_for_scene); int _get_current_main_editor(); @@ -716,6 +716,8 @@ public: void update_keying(); + void reload_scene(const String& p_path); + bool is_exiting() const { return exiting; } ToolButton *get_pause_button() { return pause_button; } |