mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Merge pull request #8999 from RandomShaper/fix-physics-2.1
Fix multiple 2D & 3D physics issues (2.1)
This commit is contained in:
commit
148a9e384b
27 changed files with 243 additions and 41 deletions
|
|
@ -275,13 +275,13 @@ void Area::_notification(int p_what) {
|
|||
|
||||
switch (p_what) {
|
||||
|
||||
case NOTIFICATION_EXIT_TREE: {
|
||||
case NOTIFICATION_EXIT_WORLD: {
|
||||
|
||||
monitoring_stored = monitoring;
|
||||
set_enable_monitoring(false);
|
||||
_clear_monitoring();
|
||||
} break;
|
||||
case NOTIFICATION_ENTER_TREE: {
|
||||
case NOTIFICATION_ENTER_WORLD: {
|
||||
|
||||
if (monitoring_stored) {
|
||||
set_enable_monitoring(true);
|
||||
|
|
@ -646,6 +646,7 @@ Area::Area()
|
|||
angular_damp = 1;
|
||||
priority = 0;
|
||||
monitoring = false;
|
||||
monitorable = false;
|
||||
collision_mask = 1;
|
||||
layer_mask = 1;
|
||||
monitoring_stored = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue