Ver código fonte

Fix polygon node losing its UV toolbar by adding a call to the show method when assinging a node.

Fixes #96238
Hristo Iliev 1 ano atrás
pai
commit
dabeaa6a4b
1 arquivos alterados com 3 adições e 1 exclusões
  1. 3 1
      editor/plugins/abstract_polygon_2d_editor.cpp

+ 3 - 1
editor/plugins/abstract_polygon_2d_editor.cpp

@@ -748,7 +748,9 @@ AbstractPolygon2DEditor::AbstractPolygon2DEditor(bool p_wip_destructive) {
 }
 
 void AbstractPolygon2DEditorPlugin::edit(Object *p_object) {
-	polygon_editor->edit(Object::cast_to<Node>(p_object));
+	Node *polygon_node = Object::cast_to<Node>(p_object);
+	polygon_editor->edit(polygon_node);
+	make_visible(polygon_node != nullptr);
 }
 
 bool AbstractPolygon2DEditorPlugin::handles(Object *p_object) const {