Fixes Area and Area2D audio bus override
This commit is contained in:
parent
4c1a5d9cfe
commit
0e8c7f58db
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…
Add table
Add a link
Reference in a new issue