Fixes Area and Area2D audio bus override
This commit is contained in:
parent
4c1a5d9cfe
commit
0e8c7f58db
@ -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 New Issue
Block a user