Merge pull request #35867 from timothyqiu/path-update

Updates Path2D in debugging if navigation is visible
This commit is contained in:
Rémi Verschelde 2020-02-06 10:23:31 +01:00 committed by GitHub
commit 449656bcbb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) {