Merge pull request #35867 from timothyqiu/path-update
Updates Path2D in debugging if navigation is visible
This commit is contained in:
commit
449656bcbb
@ -120,8 +120,14 @@ void Path2D::_notification(int p_what) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Path2D::_curve_changed() {
|
void Path2D::_curve_changed() {
|
||||||
|
if (!is_inside_tree()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!Engine::get_singleton()->is_editor_hint() && !get_tree()->is_debugging_navigation_hint()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (is_inside_tree() && Engine::get_singleton()->is_editor_hint())
|
|
||||||
update();
|
update();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user