diff options
author | Micky <micheledevita2@gmail.com> | 2022-09-17 14:34:43 +0200 |
---|---|---|
committer | Micky <micheledevita2@gmail.com> | 2022-09-17 16:06:30 +0200 |
commit | eb0cc08a23b2a8d1961c08125a88df63b43eae9b (patch) | |
tree | 1d1ebbc9f480d15a2507e51afb9c06439b6bec4b /scene/animation | |
parent | 57bdddce02370af3d13e6edc583afdc17264147d (diff) |
Rename AudioStreamPlayer3D's `unit_db` to `volume_db`
AudioStreamPlayer3D.`unit_db` -> `volume_db`
Now matches the same name AudioStreamPlayer and AudioStreamPlayer2D use.
Diffstat (limited to 'scene/animation')
-rw-r--r-- | scene/animation/animation_tree.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/scene/animation/animation_tree.cpp b/scene/animation/animation_tree.cpp index 776706d7f3..536125394b 100644 --- a/scene/animation/animation_tree.cpp +++ b/scene/animation/animation_tree.cpp @@ -1565,11 +1565,7 @@ void AnimationTree::_process_graph(double p_delta) { } real_t db = Math::linear_to_db(MAX(blend, 0.00001)); - if (t->object->has_method(SNAME("set_unit_db"))) { - t->object->call(SNAME("set_unit_db"), db); - } else { - t->object->call(SNAME("set_volume_db"), db); - } + t->object->call(SNAME("set_volume_db"), db); } break; case Animation::TYPE_ANIMATION: { if (blend < CMP_EPSILON) { |