diff options
author | Juan Linietsky <reduzio@gmail.com> | 2015-09-03 23:24:55 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2015-09-03 23:24:55 -0300 |
commit | b0aa49accbd7e45dae38f1bd43b0fbdd11714211 (patch) | |
tree | f9173780301097b0da9bba0203402c33036ea72d /servers/physics | |
parent | 7900d5daf21434a9396894a7c3ac360c03938770 (diff) |
merged some stuff for okam
Diffstat (limited to 'servers/physics')
-rw-r--r-- | servers/physics/area_sw.cpp | 8 | ||||
-rw-r--r-- | servers/physics/area_sw.h | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/servers/physics/area_sw.cpp b/servers/physics/area_sw.cpp index 01dfdd633f..e78f0699cb 100644 --- a/servers/physics/area_sw.cpp +++ b/servers/physics/area_sw.cpp @@ -83,6 +83,10 @@ void AreaSW::set_monitor_callback(ObjectID p_id, const StringName& p_method) { _shape_changed(); + if (!moved_list.in_list() && get_space()) + get_space()->area_add_to_moved_list(&moved_list); + + } void AreaSW::set_area_monitor_callback(ObjectID p_id, const StringName& p_method) { @@ -103,6 +107,10 @@ void AreaSW::set_area_monitor_callback(ObjectID p_id, const StringName& p_method _shape_changed(); + if (!moved_list.in_list() && get_space()) + get_space()->area_add_to_moved_list(&moved_list); + + } diff --git a/servers/physics/area_sw.h b/servers/physics/area_sw.h index 0c5295d42a..40ccdaf370 100644 --- a/servers/physics/area_sw.h +++ b/servers/physics/area_sw.h @@ -206,6 +206,7 @@ void AreaSW::remove_area_from_query(AreaSW *p_area, uint32_t p_area_shape,uint32 monitored_areas[bk].dec(); if (!monitor_query_list.in_list()) _queue_monitor_update(); + } |