summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2014-11-26 14:24:13 -0300
committerJuan Linietsky <reduzio@gmail.com>2014-11-26 14:24:13 -0300
commitd70e16f72f2db8c299279fc2903f4308191f142e (patch)
tree5588e7c2f55e61fb646d9d65bb7a859873457517 /scene
parente709468bb13e795cff72b3e87198c61c5b1a2ee7 (diff)
-fix sound room params (was not working)
-fixes to DAE exporter -ios fixes (video)
Diffstat (limited to 'scene')
-rw-r--r--scene/audio/sound_room_params.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/scene/audio/sound_room_params.cpp b/scene/audio/sound_room_params.cpp
index 01d373ebff..f1067f12e0 100644
--- a/scene/audio/sound_room_params.cpp
+++ b/scene/audio/sound_room_params.cpp
@@ -54,7 +54,7 @@ void SoundRoomParams::_notification(int p_what) {
case NOTIFICATION_ENTER_TREE: {
-#if 0
+//#if 0
Node *n=this;
Room *room_instance=NULL;
while(n) {
@@ -74,11 +74,11 @@ void SoundRoomParams::_notification(int p_what) {
if (room_instance) {
room=room_instance->get_sound_room();
} else {
- room=get_scene()->get_default_world()->get_sound_space();
+ room=get_viewport()->find_world()->get_sound_space();
}
_update_sound_room();
-#endif
+//#endif
} break;
case NOTIFICATION_EXIT_TREE: {