Merge pull request #22092 from akien-mga/video-toggle-regression

Fix video toggle UX issue
This commit is contained in:
Rémi Verschelde 2018-09-15 02:21:33 +02:00 committed by GitHub
commit d423906c03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5446,13 +5446,6 @@ EditorNode::EditorNode() {
video_driver_current = 0;
for (int i = 0; i < video_drivers.get_slice_count(","); i++) {
String driver = video_drivers.get_slice(",", i);
Ref<Texture> icon = get_class_icon(driver, "");
if (icon.is_valid()) {
video_driver->add_icon_item(icon, "");
} else {
video_driver->add_item(driver);
}
video_driver->add_item(driver);
video_driver->set_item_metadata(i, driver);