diff options
author | Juan Linietsky <reduzio@gmail.com> | 2018-06-18 22:10:48 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2018-06-18 22:12:08 -0300 |
commit | 0a1c1c660fc6aa0689816e85f2b6791c225c6d63 (patch) | |
tree | 3907bed5d82fec145f771c713999418bd96ab5ef /editor/editor_data.h | |
parent | 5c5aafabecfeaa056cae4c3a7fbaa1c52f147930 (diff) |
-Added AnimationGraphPlayer (still missing features)
-Added ability to edit resources from built-in inspector (wip, needs testing and feedback)
Diffstat (limited to 'editor/editor_data.h')
-rw-r--r-- | editor/editor_data.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/editor/editor_data.h b/editor/editor_data.h index 0452867bf4..0ecef8ae31 100644 --- a/editor/editor_data.h +++ b/editor/editor_data.h @@ -50,6 +50,7 @@ class EditorHistory { REF ref; ObjectID object; String property; + bool inspector_only; }; struct History { @@ -70,7 +71,7 @@ class EditorHistory { Variant value; }; - void _add_object(ObjectID p_object, const String &p_property, int p_level_change); + void _add_object(ObjectID p_object, const String &p_property, int p_level_change, bool p_inspector_only = false); public: void cleanup_history(); @@ -78,6 +79,7 @@ public: bool is_at_beginning() const; bool is_at_end() const; + void add_object_inspector_only(ObjectID p_object); void add_object(ObjectID p_object); void add_object(ObjectID p_object, const String &p_subprop); void add_object(ObjectID p_object, int p_relevel); @@ -85,10 +87,12 @@ public: int get_history_len(); int get_history_pos(); ObjectID get_history_obj(int p_obj) const; + bool is_history_obj_inspector_only(int p_obj) const; bool next(); bool previous(); ObjectID get_current(); + bool is_current_inspector_only() const; int get_path_size() const; ObjectID get_path_object(int p_index) const; |