mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Merge pull request #31747 from KoBeWi/scene_stalking
Detect external modification of scenes
This commit is contained in:
commit
b1c60c757f
6 changed files with 145 additions and 5 deletions
|
|
@ -111,6 +111,7 @@ public:
|
|||
struct EditedScene {
|
||||
Node *root = nullptr;
|
||||
String path;
|
||||
uint64_t file_modified_time = 0;
|
||||
Dictionary editor_states;
|
||||
List<Node *> selection;
|
||||
Vector<EditorHistory::History> history_stored;
|
||||
|
|
@ -190,6 +191,8 @@ public:
|
|||
Ref<Script> get_scene_root_script(int p_idx) const;
|
||||
void set_edited_scene_version(uint64_t version, int p_scene_idx = -1);
|
||||
uint64_t get_scene_version(int p_idx) const;
|
||||
void set_scene_modified_time(int p_idx, uint64_t p_time);
|
||||
uint64_t get_scene_modified_time(int p_idx) const;
|
||||
void clear_edited_scenes();
|
||||
void set_edited_scene_live_edit_root(const NodePath &p_root);
|
||||
NodePath get_edited_scene_live_edit_root();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue