1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-15 13:51:40 +00:00

Fix Path2D editor not updating gizmos on selection

This commit is contained in:
Lars Pettersson
2024-08-31 21:38:15 +02:00
parent 61598c5c88
commit 608d5598e8

View File

@@ -468,6 +468,8 @@ void Path2DEditor::edit(Node *p_path2d) {
} }
node = nullptr; node = nullptr;
} }
canvas_item_editor->update_viewport();
} }
void Path2DEditor::_bind_methods() { void Path2DEditor::_bind_methods() {
@@ -718,7 +720,6 @@ bool Path2DEditorPlugin::handles(Object *p_object) const {
void Path2DEditorPlugin::make_visible(bool p_visible) { void Path2DEditorPlugin::make_visible(bool p_visible) {
if (p_visible) { if (p_visible) {
path2d_editor->show(); path2d_editor->show();
} else { } else {
path2d_editor->hide(); path2d_editor->hide();
path2d_editor->edit(nullptr); path2d_editor->edit(nullptr);