You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 13:10:58 +00:00
Rename AudioStreamPlayer3D's unit_db to volume_db
AudioStreamPlayer3D.`unit_db` -> `volume_db` Now matches the same name AudioStreamPlayer and AudioStreamPlayer2D use.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user