Browse Source

Fix Path2D editor not updating gizmos on selection

Lars Pettersson 1 year ago
parent
commit
608d5598e8
1 changed files with 2 additions and 1 deletions
  1. 2 1
      editor/plugins/path_2d_editor_plugin.cpp

+ 2 - 1
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);