Explorar el Código

Fix PopupMenu icon and text not having separation

Haoyu Qiu hace 2 años
padre
commit
78a11ea48c
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      scene/gui/popup_menu.cpp

+ 3 - 0
scene/gui/popup_menu.cpp

@@ -495,6 +495,9 @@ void PopupMenu::_draw_items() {
 			has_check = true;
 		}
 	}
+	if (icon_ofs > 0.0) {
+		icon_ofs += hseparation;
+	}
 
 	float check_ofs = 0.0;
 	if (has_check) {