summaryrefslogtreecommitdiffstats
path: root/editor/plugins/replication_editor_plugin.cpp
diff options
context:
space:
mode:
authorHendrik Brucker <hendrik.brucker@mail.de>2022-03-30 20:12:26 +0200
committerHendrik Brucker <hendrik.brucker@mail.de>2022-03-30 20:12:26 +0200
commit314430b868be430fbd7fa3ffb0d8c0ee17d712d1 (patch)
treecd3f0ba1035456d38abdfbe9183b4d06a4fdf76b /editor/plugins/replication_editor_plugin.cpp
parent482cdeaf718d77c24783a6b73281bfed886474ed (diff)
downloadredot-engine-314430b868be430fbd7fa3ffb0d8c0ee17d712d1.tar.gz
Cleanup EditorNode and EditorData
Co-authored-by: Eric M <itsjusteza@gmail.com>
Diffstat (limited to 'editor/plugins/replication_editor_plugin.cpp')
-rw-r--r--editor/plugins/replication_editor_plugin.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/plugins/replication_editor_plugin.cpp b/editor/plugins/replication_editor_plugin.cpp
index e4c1c69804..2a7b3c7a55 100644
--- a/editor/plugins/replication_editor_plugin.cpp
+++ b/editor/plugins/replication_editor_plugin.cpp
@@ -217,7 +217,7 @@ void ReplicationEditor::update_keying() {
/// TODO make keying usable.
#if 0
bool keying_enabled = false;
- EditorHistory *editor_history = EditorNode::get_singleton()->get_editor_history();
+ EditorSelectionHistory *editor_history = EditorNode::get_singleton()->get_editor_selection_history();
if (is_visible_in_tree() && config.is_valid() && editor_history->get_path_size() > 0) {
Object *obj = ObjectDB::get_instance(editor_history->get_path_object(0));
keying_enabled = Object::cast_to<Node>(obj) != nullptr;
@@ -305,7 +305,7 @@ void ReplicationEditor::property_keyed(const String &p_property) {
ERR_FAIL_COND(!current || config.is_null());
Node *root = current->get_node(current->get_root_path());
ERR_FAIL_COND(!root);
- EditorHistory *history = EditorNode::get_singleton()->get_editor_history();
+ EditorSelectionHistory *history = EditorNode::get_singleton()->get_editor_selection_history();
ERR_FAIL_COND(history->get_path_size() == 0);
Node *node = Object::cast_to<Node>(ObjectDB::get_instance(history->get_path_object(0)));
ERR_FAIL_COND(!node);