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_tree.cpp | |
parent | 9bab5134cfd4f0095545ae58fcf6a10dc07dc7d1 (diff) | |
download | redot-engine-eeab3502d5eec68dbce2d7b7ff822a14e6a3599c.tar.gz |
Changes to how node paths are selected from property, allowing setting a hint.
Diffstat (limited to 'scene/animation/animation_tree.cpp')
-rw-r--r-- | scene/animation/animation_tree.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/animation/animation_tree.cpp b/scene/animation/animation_tree.cpp index 1e583db676..b1a300b225 100644 --- a/scene/animation/animation_tree.cpp +++ b/scene/animation/animation_tree.cpp @@ -1290,7 +1290,7 @@ void AnimationTree::_bind_methods() { ClassDB::bind_method(D_METHOD("_node_removed"), &AnimationTree::_node_removed); ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "tree_root", PROPERTY_HINT_RESOURCE_TYPE, "AnimationRootNode", PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_DO_NOT_SHARE_ON_DUPLICATE), "set_tree_root", "get_tree_root"); - ADD_PROPERTY(PropertyInfo(Variant::NODE_PATH, "anim_player"), "set_animation_player", "get_animation_player"); + ADD_PROPERTY(PropertyInfo(Variant::NODE_PATH, "anim_player",PROPERTY_HINT_NODE_PATH_VALID_TYPES,"AnimationPlayer"), "set_animation_player", "get_animation_player"); ADD_PROPERTY(PropertyInfo(Variant::BOOL, "active"), "set_active", "is_active"); ADD_PROPERTY(PropertyInfo(Variant::INT, "process_mode", PROPERTY_HINT_ENUM, "Physics,Idle"), "set_process_mode", "get_process_mode"); ADD_GROUP("Root Motion", "root_motion_"); |