Merge pull request #4259 from neikeq/pr-issue-4224
Fix RayCast not updating when debugging collissions
This commit is contained in:
commit
b9ac3df29b
2 changed files with 2 additions and 2 deletions
|
@ -33,7 +33,7 @@
|
|||
void RayCast2D::set_cast_to(const Vector2& p_point) {
|
||||
|
||||
cast_to=p_point;
|
||||
if (is_inside_tree() && get_tree()->is_editor_hint())
|
||||
if (is_inside_tree() && (get_tree()->is_editor_hint() || get_tree()->is_debugging_collisions_hint()))
|
||||
update();
|
||||
|
||||
}
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
void RayCast::set_cast_to(const Vector3& p_point) {
|
||||
|
||||
cast_to=p_point;
|
||||
if (is_inside_tree() && get_tree()->is_editor_hint())
|
||||
if (is_inside_tree() && (get_tree()->is_editor_hint() || get_tree()->is_debugging_collisions_hint()))
|
||||
update_gizmo();
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue