mirror of
https://github.com/godotengine/godot.git
synced 2025-10-15 02:49:24 +00:00
Fix RayCast not updating when debugging collissions
(cherry picked from commit 6cf3bdcf76
)
This commit is contained in:

committed by
Rémi Verschelde

parent
e120e2265b
commit
40d21117f9
@@ -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();
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user