Skip to content

Commit

Permalink
untextured tex selection msg fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Baezon committed Oct 4, 2023
1 parent 9f54bad commit 9752f11
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ui_properties_panel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1682,7 +1682,11 @@ impl PofToolsGui {
}

ui.add_space(5.0);
if TreeValue::Textures(TextureTreeValue::tex(self.model.untextured_idx)) == self.ui_state.tree_view_selection {
if self
.model
.untextured_idx
.map_or(false, |idx| TreeValue::Textures(TextureTreeValue::Texture(idx)) == self.ui_state.tree_view_selection)
{
ui.label("If this is intentional, you may prefer \"invisible\", which FSO will ignore.");
}
}
Expand Down

0 comments on commit 9752f11

Please sign in to comment.