From fa5d34508bb3e82437acbdbdba1e4c533e0c1c30 Mon Sep 17 00:00:00 2001 From: dabomian Date: Wed, 9 Oct 2019 11:25:10 +0200 Subject: [PATCH] obj transparency fix d->Tr and its value/100 --- src/Mod/Arch/importOBJ.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Arch/importOBJ.py b/src/Mod/Arch/importOBJ.py index ae5a7e64d0..fba5c2308b 100644 --- a/src/Mod/Arch/importOBJ.py +++ b/src/Mod/Arch/importOBJ.py @@ -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: