You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-10 13:00:37 +00:00
Fix Polygon2D Editor interacting with its buttons too soon
This commit is contained in:
@@ -201,6 +201,8 @@ void AbstractPolygon2DEditor::_notification(int p_what) {
|
|||||||
|
|
||||||
case NOTIFICATION_READY: {
|
case NOTIFICATION_READY: {
|
||||||
|
|
||||||
|
disable_polygon_editing(false, String());
|
||||||
|
|
||||||
button_create->set_icon(EditorNode::get_singleton()->get_gui_base()->get_icon("CurveCreate", "EditorIcons"));
|
button_create->set_icon(EditorNode::get_singleton()->get_gui_base()->get_icon("CurveCreate", "EditorIcons"));
|
||||||
button_edit->set_icon(EditorNode::get_singleton()->get_gui_base()->get_icon("CurveEdit", "EditorIcons"));
|
button_edit->set_icon(EditorNode::get_singleton()->get_gui_base()->get_icon("CurveEdit", "EditorIcons"));
|
||||||
button_delete->set_icon(EditorNode::get_singleton()->get_gui_base()->get_icon("CurveDelete", "EditorIcons"));
|
button_delete->set_icon(EditorNode::get_singleton()->get_gui_base()->get_icon("CurveDelete", "EditorIcons"));
|
||||||
@@ -797,8 +799,6 @@ AbstractPolygon2DEditor::AbstractPolygon2DEditor(EditorNode *p_editor, bool p_wi
|
|||||||
selected_point = Vertex();
|
selected_point = Vertex();
|
||||||
edge_point = PosVertex();
|
edge_point = PosVertex();
|
||||||
|
|
||||||
disable_polygon_editing(false, String());
|
|
||||||
|
|
||||||
add_child(memnew(VSeparator));
|
add_child(memnew(VSeparator));
|
||||||
button_create = memnew(ToolButton);
|
button_create = memnew(ToolButton);
|
||||||
add_child(button_create);
|
add_child(button_create);
|
||||||
|
|||||||
Reference in New Issue
Block a user