Skip to content

Commit

Permalink
modify an error message
Browse files Browse the repository at this point in the history
  • Loading branch information
matyalatte committed Mar 16, 2024
1 parent 9d3b909 commit 5ad09bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion addons/blender_dds_addon/directx/texconv.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,8 @@ def convert_to_dds(self, file, dds_fmt, out=None,
if is_hdr(dds_fmt) and ext != 'hdr':
raise RuntimeError(f'Use .hdr for HDR textures. ({file})')
if ('BC6' in dds_fmt or 'BC7' in dds_fmt) and (not util.is_windows()) and (not allow_slow_codec):
raise RuntimeError(f'Can NOT use CPU codec for {dds_fmt}. Or enable the "Allow Slow Codec" option.')
raise RuntimeError(f'Can NOT export {dds_fmt} textures on this platform.'
' Or enable the "Allow Slow Codec" option.')

if not DXGI_FORMAT.is_valid_format(dds_fmt):
raise RuntimeError(f'Not DXGI format. ({dds_fmt})')
Expand Down

0 comments on commit 5ad09bf

Please sign in to comment.