From 578ed3f5d0daebc9cf30e683a6a2ccce92ad74dd Mon Sep 17 00:00:00 2001 From: John Senneker Date: Fri, 25 Nov 2016 12:09:49 -0500 Subject: [PATCH] Properly export COLLADA value --- code/ColladaExporter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/ColladaExporter.cpp b/code/ColladaExporter.cpp index fdb3190..ee29e93 100644 --- a/code/ColladaExporter.cpp +++ b/code/ColladaExporter.cpp @@ -691,7 +691,7 @@ void ColladaExporter::WriteMaterials() materials[a].shininess.exist = mat->Get( AI_MATKEY_SHININESS, materials[a].shininess.value) == aiReturn_SUCCESS; materials[a].transparency.exist = mat->Get( AI_MATKEY_OPACITY, materials[a].transparency.value) == aiReturn_SUCCESS; - materials[a].transparency.value = 1 - materials[a].transparency.value; + materials[a].transparency.value = materials[a].transparency.value; materials[a].index_refraction.exist = mat->Get( AI_MATKEY_REFRACTI, materials[a].index_refraction.value) == aiReturn_SUCCESS; } -- 2.7.4