Skip to content

Commit

Permalink
Remove rtex extension from the path in mrl
Browse files Browse the repository at this point in the history
  • Loading branch information
HenryOfCarim committed Jun 26, 2024
1 parent f3f3853 commit 0a377de
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions albam/engines/mtfw/material.py
Original file line number Diff line number Diff line change
Expand Up @@ -694,6 +694,7 @@ def _gather_tex_types(bl_mat, exported_textures, textures_list, mrl=None):
image_name = im_node.image.name
vfile = exported_textures[image_name]["serialized_vfile"]
relative_path_no_ext = vfile.relative_path.replace(".tex", "")
relative_path_no_ext = relative_path_no_ext.replace(".rtex", "")
if not mrl:
try:
real_tex_idx = textures_list.index(relative_path_no_ext)
Expand Down

0 comments on commit 0a377de

Please sign in to comment.