summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorWysocki Patryk <wysockipawelpatryk@gmail.com>2020-04-16 23:21:11 +0200
committerRĂ©mi Verschelde <rverschelde@gmail.com>2022-01-25 01:17:21 +0100
commitf16c483c9dcc4a9ed2c77d9d1ddbf358e8f3805e (patch)
tree283201f02c0a34548d8c9ed1730f07b6b3a8c786 /scene
parent30701e3966fe0869868d09d57249ff140e55849e (diff)
Expose AnimationNodeOneShot::mix_mode as a property
Fixes #23458.
Diffstat (limited to 'scene')
-rw-r--r--scene/animation/animation_blend_tree.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/animation/animation_blend_tree.cpp b/scene/animation/animation_blend_tree.cpp
index 2740103a4a..9d37b2d6ac 100644
--- a/scene/animation/animation_blend_tree.cpp
+++ b/scene/animation/animation_blend_tree.cpp
@@ -371,6 +371,8 @@ void AnimationNodeOneShot::_bind_methods() {
ClassDB::bind_method(D_METHOD("set_use_sync", "enable"), &AnimationNodeOneShot::set_use_sync);
ClassDB::bind_method(D_METHOD("is_using_sync"), &AnimationNodeOneShot::is_using_sync);
+ ADD_PROPERTY(PropertyInfo(Variant::INT, "mix_mode", PROPERTY_HINT_ENUM, "Blend,Add"), "set_mix_mode", "get_mix_mode");
+
ADD_PROPERTY(PropertyInfo(Variant::FLOAT, "fadein_time", PROPERTY_HINT_RANGE, "0,60,0.01,or_greater"), "set_fadein_time", "get_fadein_time");
ADD_PROPERTY(PropertyInfo(Variant::FLOAT, "fadeout_time", PROPERTY_HINT_RANGE, "0,60,0.01,or_greater"), "set_fadeout_time", "get_fadeout_time");