remove error print in area collision, should be a valid situation, closes #2463
This commit is contained in:
parent
8dad6415b1
commit
1e65c3c701
2 changed files with 6 additions and 3 deletions
|
@ -383,7 +383,11 @@ void Area2D::_clear_monitoring() {
|
|||
|
||||
Object *obj = ObjectDB::get_instance(E->key());
|
||||
Node *node = obj ? obj->cast_to<Node>() : NULL;
|
||||
ERR_CONTINUE(!node);
|
||||
|
||||
if (!node) //node may have been deleted in previous frame, this should not be an error
|
||||
continue;
|
||||
//ERR_CONTINUE(!node);
|
||||
|
||||
if (!E->get().in_tree)
|
||||
continue;
|
||||
|
||||
|
|
|
@ -394,8 +394,7 @@ void Body2DSW::_compute_area_gravity_and_dampenings(const Area2DSW *p_area) {
|
|||
}
|
||||
|
||||
area_linear_damp += p_area->get_linear_damp();
|
||||
area_angular_damp += p_area->get_angular_damp();
|
||||
printf("%f\n",gravity.y);
|
||||
area_angular_damp += p_area->get_angular_damp();
|
||||
}
|
||||
|
||||
void Body2DSW::integrate_forces(real_t p_step) {
|
||||
|
|
Loading…
Reference in a new issue