From 608d5598e85556133cccf522b100d0f0cf1b4017 Mon Sep 17 00:00:00 2001 From: Lars Pettersson Date: Sat, 31 Aug 2024 21:38:15 +0200 Subject: [PATCH] Fix Path2D editor not updating gizmos on selection --- editor/plugins/path_2d_editor_plugin.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/editor/plugins/path_2d_editor_plugin.cpp b/editor/plugins/path_2d_editor_plugin.cpp index 5b23cf44d03..a8083c22d7f 100644 --- a/editor/plugins/path_2d_editor_plugin.cpp +++ b/editor/plugins/path_2d_editor_plugin.cpp @@ -468,6 +468,8 @@ void Path2DEditor::edit(Node *p_path2d) { } node = nullptr; } + + canvas_item_editor->update_viewport(); } void Path2DEditor::_bind_methods() { @@ -718,7 +720,6 @@ bool Path2DEditorPlugin::handles(Object *p_object) const { void Path2DEditorPlugin::make_visible(bool p_visible) { if (p_visible) { path2d_editor->show(); - } else { path2d_editor->hide(); path2d_editor->edit(nullptr);