You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-07 19:53:17 +00:00
Fixes Area and Area2D audio bus override
This commit is contained in:
@@ -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++) {
|
||||
|
||||
Reference in New Issue
Block a user