Skip to content

Commit

Permalink
obj transparency fix d->Tr and its value/100
Browse files Browse the repository at this point in the history
  • Loading branch information
dbobrowski authored and yorikvanhavre committed Oct 15, 2019
1 parent b479a4c commit fa5d345
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mod/Arch/importOBJ.py
Expand Up @@ -248,7 +248,7 @@ def export(exportList,filename,colors=None):
if not mat[0] in done:
outfile.write("newmtl " + mat[0] + "\n")
outfile.write("Kd " + str(mat[1][0]) + " " + str(mat[1][1]) + " " + str(mat[1][2]) + "\n")
outfile.write("d " + str(mat[2]) + "\n")
outfile.write("Tr " + str(mat[2]/100) + "\n")
done.append(mat[0])
else:
if not mat.Name in done:
Expand Down

0 comments on commit fa5d345

Please sign in to comment.