diff options
Diffstat (limited to 'editor/animation_editor.cpp')
-rw-r--r-- | editor/animation_editor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/animation_editor.cpp b/editor/animation_editor.cpp index ed80be9e17..55542a59a2 100644 --- a/editor/animation_editor.cpp +++ b/editor/animation_editor.cpp @@ -3249,9 +3249,9 @@ void AnimationKeyEditor::insert_value_key(const String &p_property, const Varian //let's build a node path ERR_FAIL_COND(history->get_path_size() == 0); Object *obj = ObjectDB::get_instance(history->get_path_object(0)); - ERR_FAIL_COND(!obj || !obj->cast_to<Node>()); + ERR_FAIL_COND(!Object::cast_to<Node>(obj)); - Node *node = obj->cast_to<Node>(); + Node *node = Object::cast_to<Node>(obj); String path = root->get_path_to(node); |