diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2022-10-08 13:56:10 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2022-10-08 13:56:10 +0200 |
commit | 2b376437a293971432f5e25487a6e3e79a8e8e4e (patch) | |
tree | f0005b922d5f7adb314c8222bfc949b9bfd69abe /scene/animation | |
parent | 0a129645acc00c2da6dac43379dec0af24ebe00d (diff) | |
parent | eb0cc08a23b2a8d1961c08125a88df63b43eae9b (diff) |
Merge pull request #65983 from Mickeon/rename-audio-player-volume-db
Rename AudioStreamPlayer3D's `unit_db` to `volume_db`
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 4d09fa619c..f5c7ad254c 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) { |