From f1e2b7862bb48ca4bdbbf542c901ffcde9179bbd Mon Sep 17 00:00:00 2001 From: Jay Dolan Date: Fri, 16 Mar 2018 13:34:47 -0400 Subject: [PATCH] #TTimo/GtkRadiant/issues/608 Populate the texture name if only one texture is used in faces list. --- plugins/surface_idtech2/surfacedialog.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/surface_idtech2/surfacedialog.cpp b/plugins/surface_idtech2/surfacedialog.cpp index cf7c2de1..8c3f53b6 100644 --- a/plugins/surface_idtech2/surfacedialog.cpp +++ b/plugins/surface_idtech2/surfacedialog.cpp @@ -300,6 +300,10 @@ static void PopulateTextureComboList(){ } g_list_free( items ); + // If the texture name is not conflicting for the faces list, select the newly added item + if ( !is_TextureName_conflicting ) { + gtk_combo_box_set_active( GTK_COMBO_BOX( texture_combo ), 0); + } } static void GetTexdefInfo_from_Radiant(){