diff options
Diffstat (limited to 'source/gameengine/Converter')
-rw-r--r-- | source/gameengine/Converter/BL_BlenderDataConversion.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source/gameengine/Converter/BL_BlenderDataConversion.cpp b/source/gameengine/Converter/BL_BlenderDataConversion.cpp index a49a84a327d..e112537d0f6 100644 --- a/source/gameengine/Converter/BL_BlenderDataConversion.cpp +++ b/source/gameengine/Converter/BL_BlenderDataConversion.cpp @@ -892,7 +892,12 @@ bool ConvertMaterial( if (validmat) material->matname =(mat->id.name); - material->tface = tface; + if (tface) { + material->tface = *tface; + } + else { + memset(&material->tface, 0, sizeof(material->tface)); + } material->material = mat; return true; } |