Skip to content

Commit

Permalink
update document, linting
Browse files Browse the repository at this point in the history
  • Loading branch information
matyalatte committed Oct 13, 2022
1 parent 2b28ed7 commit 1aa5edc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
![build](https://github.com/matyalatte/Blender-DDS-Addon/actions/workflows/build.yml/badge.svg)
<a href="https://www.buymeacoffee.com/matyalatteQ" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/default-orange.png" alt="Buy Me A Coffee" height="41" width="174"></a>

Blender addon to import and export dds textures

Expand Down
6 changes: 3 additions & 3 deletions addons/blender_dds_addon/export_dds.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ def save_dds(tex, file, dds_fmt, invert_normals=False, no_mip=False,

if texconv is None:
texconv = Texconv()

temp_dds = texconv.convert_to_dds(temp, dds_fmt, out=temp_dir,
invert_normals=invert_normals, no_mip=no_mip,
allow_slow_codec=allow_slow_codec)
invert_normals=invert_normals, no_mip=no_mip,
allow_slow_codec=allow_slow_codec)
if temp_dds is None:
raise RuntimeError('Failed to convert texture.')
shutil.copyfile(temp_dds, file)
Expand Down
1 change: 0 additions & 1 deletion addons/blender_dds_addon/import_dds.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ def load_dds(file, invert_normals=False, texconv=None):
"""
texture_name = os.path.basename(file)[:-4]


try:
with tempfile.TemporaryDirectory() as temp_dir:
temp = os.path.join(temp_dir, "temp.dds")
Expand Down

0 comments on commit 1aa5edc

Please sign in to comment.