summaryrefslogtreecommitdiff
path: root/scene/animation
diff options
context:
space:
mode:
authorBojidar Marinov <bojidar.marinov.bg@gmail.com>2018-06-18 15:59:13 +0300
committerBojidar Marinov <bojidar.marinov.bg@gmail.com>2018-06-18 15:59:13 +0300
commit7b107cb1805350b7e1214a1dd58b4fea55613f57 (patch)
treee5615c20b02b7ff408102672389f4e5281300f56 /scene/animation
parent257d3c3f39fd144d202f112c9cb08a82c174afbc (diff)
Fix bug in animationplayer editor not using subproperties properly
Fixes #19448
Diffstat (limited to 'scene/animation')
-rw-r--r--scene/animation/animation_player.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/scene/animation/animation_player.cpp b/scene/animation/animation_player.cpp
index 0aabc3b38c..5ddae97ee2 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];