Skip to content

Commit

Permalink
QC: Fix "_lod0" meshes being skipped as lod meshes
Browse files Browse the repository at this point in the history
Fixes #15.
  • Loading branch information
lasa01 committed May 3, 2020
1 parent 4706af9 commit f1b7e78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion io_import_vmf/import_qc.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def readSMD(self, filepath: str, upAxis: str, rotMode: str,
newscene: bool = False, smd_type: Any = None, target_layer: int = 0) -> int:
if smd_type == utils.PHYS: # skip collision meshes
return 0
if splitext(basename(filepath))[0].rstrip("1234567890").endswith("_lod"): # skip lod meshes
if splitext(basename(filepath))[0].rstrip("123456789").endswith("_lod"): # skip lod meshes
return 0
result = super().readSMD(filepath, upAxis, rotMode, newscene, smd_type, target_layer)
if self.smd.g:
Expand Down

0 comments on commit f1b7e78

Please sign in to comment.