diff options
author | Juan Linietsky <reduzio@gmail.com> | 2018-06-27 20:50:25 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2018-06-27 20:50:25 -0300 |
commit | eeab3502d5eec68dbce2d7b7ff822a14e6a3599c (patch) | |
tree | 4b04c300f75bf49372a4900e2456b972a580650b /scene/animation/animation_blend_space_1d.cpp | |
parent | 9bab5134cfd4f0095545ae58fcf6a10dc07dc7d1 (diff) |
Changes to how node paths are selected from property, allowing setting a hint.
Diffstat (limited to 'scene/animation/animation_blend_space_1d.cpp')
-rw-r--r-- | scene/animation/animation_blend_space_1d.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/scene/animation/animation_blend_space_1d.cpp b/scene/animation/animation_blend_space_1d.cpp index 6993c0a785..d3d2870c3f 100644 --- a/scene/animation/animation_blend_space_1d.cpp +++ b/scene/animation/animation_blend_space_1d.cpp @@ -1,5 +1,15 @@ #include "animation_blend_space_1d.h" +void AnimationNodeBlendSpace1D::set_tree(AnimationTree *p_player) { + + AnimationRootNode::set_tree(p_player); + + for(int i=0;i<blend_points_used;i++) { + blend_points[i].node->set_tree(p_player); + } + +} + void AnimationNodeBlendSpace1D::_validate_property(PropertyInfo &property) const { if (property.name.begins_with("blend_point_")) { String left = property.name.get_slicec('/', 0); |