Skip to content

Commit

Permalink
FIX: Allow loading tool textures from the VFS so they don't cause nig…
Browse files Browse the repository at this point in the history
…h-endless warning spam
  • Loading branch information
magicaldave committed Oct 15, 2024
1 parent 037dbf2 commit a566dbc
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/map_data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,6 @@ impl MapData {
let mut modified_textures: BTreeMap<TextureId, String> = BTreeMap::new();

for (texture_id, texture_name) in geomap.textures.iter() {
if texture_name == "__TB_empty" || texture_name == "skip" || texture_name == "clip" {
continue;
}

for texture_path in &texture_paths {
if texture_path
.to_ascii_lowercase()
Expand Down Expand Up @@ -134,10 +130,6 @@ impl MapData {
pub fn find_vfs_texture(name: &str, config: &Ini) -> Option<String> {
let extensions = ["dds", "tga", "png"];

if name == "__TB_empty" || name == "trigger" || name == "skip" || name == "clip" {
return None;
}

Some(
extensions
.iter()
Expand Down

0 comments on commit a566dbc

Please sign in to comment.