mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
Updates Path2D in debugging if navigation is visible
(cherry picked from commit 00d578ba3e)
This commit is contained in:
committed by
Rémi Verschelde
parent
0995696e08
commit
dc20acd4fc
@@ -120,9 +120,15 @@ void Path2D::_notification(int p_what) {
|
||||
}
|
||||
|
||||
void Path2D::_curve_changed() {
|
||||
if (!is_inside_tree()) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (is_inside_tree() && Engine::get_singleton()->is_editor_hint())
|
||||
update();
|
||||
if (!Engine::get_singleton()->is_editor_hint() && !get_tree()->is_debugging_navigation_hint()) {
|
||||
return;
|
||||
}
|
||||
|
||||
update();
|
||||
}
|
||||
|
||||
void Path2D::set_curve(const Ref<Curve2D> &p_curve) {
|
||||
|
||||
Reference in New Issue
Block a user