diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2018-07-26 10:31:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-26 10:31:05 +0200 |
commit | 39168f125e7774129125721a99c0b9a4604ba2ab (patch) | |
tree | e110c677106bd98948ba93d76bc3f9c32eb90e74 /scene/animation | |
parent | f2ced43a43178713b57b7840afb0fe1bb432a22a (diff) | |
parent | 7b107cb1805350b7e1214a1dd58b4fea55613f57 (diff) |
Merge pull request #19464 from bojidar-bg/19448-fix-subproperty-handling
Fix bug in animationplayer editor not using subproperties properly
Diffstat (limited to 'scene/animation')
-rw-r--r-- | scene/animation/animation_player.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/scene/animation/animation_player.cpp b/scene/animation/animation_player.cpp index b6988c08db..2782354432 100644 --- a/scene/animation/animation_player.cpp +++ b/scene/animation/animation_player.cpp @@ -331,11 +331,7 @@ void AnimationPlayer::_ensure_node_caches(AnimationData *p_anim) { if (!p_anim->node_cache[i]->bezier_anim.has(a->track_get_path(i).get_concatenated_subnames())) { TrackNodeCache::BezierAnim ba; - String path = leftover_path[leftover_path.size() - 1]; - Vector<String> index = path.split("."); - for (int j = 0; j < index.size(); j++) { - ba.bezier_property.push_back(index[j]); - } + ba.bezier_property = leftover_path; ba.object = resource.is_valid() ? (Object *)resource.ptr() : (Object *)child; ba.owner = p_anim->node_cache[i]; |