From 867d073b98344b848c96012418912a7e72841a31 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Thu, 13 Feb 2020 16:03:10 -0300 Subject: Changed logic and optimized ObjectID in ObjectDB and Variant, removed RefPtr. --- scene/animation/animation_player.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scene/animation/animation_player.cpp') diff --git a/scene/animation/animation_player.cpp b/scene/animation/animation_player.cpp index 740dad9a1a..ceee0529c2 100644 --- a/scene/animation/animation_player.cpp +++ b/scene/animation/animation_player.cpp @@ -106,7 +106,7 @@ bool AnimationPlayer::_get(const StringName &p_name, Variant &r_ret) const { } else if (name.begins_with("anims/")) { String which = name.get_slicec('/', 1); - r_ret = get_animation(which).get_ref_ptr(); + r_ret = get_animation(which); } else if (name.begins_with("next/")) { -- cgit v1.2.3