Skip to content

Commit

Permalink
Fix RayCast not updating when debugging collissions
Browse files Browse the repository at this point in the history
  • Loading branch information
neikeq committed Apr 7, 2016
1 parent 50aa782 commit 6cf3bdc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scene/2d/ray_cast_2d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();

}
Expand Down
2 changes: 1 addition & 1 deletion scene/3d/ray_cast.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();

}
Expand Down

0 comments on commit 6cf3bdc

Please sign in to comment.