Merge pull request #22922 from mrcdk/fix_area_bus_override
Fixes Area and Area2D audio bus override
This commit is contained in:
commit
b4dd1afa74
2 changed files with 2 additions and 2 deletions
|
@ -179,7 +179,7 @@ void AudioStreamPlayer2D::_notification(int p_what) {
|
|||
|
||||
Physics2DDirectSpaceState::ShapeResult sr[MAX_INTERSECT_AREAS];
|
||||
|
||||
int areas = space_state->intersect_point(global_pos, sr, MAX_INTERSECT_AREAS, Set<RID>(), area_mask);
|
||||
int areas = space_state->intersect_point(global_pos, sr, MAX_INTERSECT_AREAS, Set<RID>(), area_mask, false, true);
|
||||
|
||||
for (int i = 0; i < areas; i++) {
|
||||
|
||||
|
|
|
@ -290,7 +290,7 @@ void AudioStreamPlayer3D::_notification(int p_what) {
|
|||
|
||||
PhysicsDirectSpaceState::ShapeResult sr[MAX_INTERSECT_AREAS];
|
||||
|
||||
int areas = space_state->intersect_point(global_pos, sr, MAX_INTERSECT_AREAS, Set<RID>(), area_mask);
|
||||
int areas = space_state->intersect_point(global_pos, sr, MAX_INTERSECT_AREAS, Set<RID>(), area_mask, false, true);
|
||||
Area *area = NULL;
|
||||
|
||||
for (int i = 0; i < areas; i++) {
|
||||
|
|
Loading…
Reference in a new issue