Merge pull request #227 from hiroj/fix_emission_export

If Emission keyword is false, do not output a value
This commit is contained in:
yutopp 2019-03-18 23:48:46 +09:00 committed by GitHub
commit 44548b95ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -142,6 +142,9 @@ namespace UniGLTF
static void Export_Emission(Material m, TextureExportManager textureManager, glTFMaterial material)
{
if (m.IsKeywordEnabled("_EMISSION") == false)
return;
if (m.HasProperty("_EmissionColor"))
{
var color = m.GetColor("_EmissionColor");