Skip to content

Commit

Permalink
Trim whitespace TextureDetail
Browse files Browse the repository at this point in the history
In some circumstances it may come out that way:
TextureDetail "materials/detail/dt_stone1 .tga"
  • Loading branch information
realpack committed Sep 18, 2021
1 parent cec56df commit f8bd664
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/vmt_to_vmat.py
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,7 @@ def parseVMTParameter(line, parameters):
vmtParameters["$detail"]) + " in TGA does not exist. Skipping!")

vmatFile.write('\tTextureDetail "' + 'materials/' +
parseVMTPath(vmtParameters["$detail"]) + '.tga"\n')
parseVMTPath(vmtParameters["$detail"]).strip() + '.tga"\n')
if "$detailblendmode" in vmtParameters:
vmatFile.write('\tF_DETAIL_TEXTURE 2\n') # Overlay
else:
Expand Down

0 comments on commit f8bd664

Please sign in to comment.