diff --git a/src/ui_properties_panel.rs b/src/ui_properties_panel.rs index f5c32b5..e8cc0fa 100644 --- a/src/ui_properties_panel.rs +++ b/src/ui_properties_panel.rs @@ -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."); } }