From d21d25538959611bd090c7d5c3709164290d4b42 Mon Sep 17 00:00:00 2001 From: Alfredo de Greef Date: Tue, 25 Oct 2005 09:30:54 +0000 Subject: fix for bug #3193, winmat was not calculated properly because of some previously uninitialized parameters. --- source/blender/yafray/intern/export_File.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source/blender/yafray/intern/export_File.cpp') diff --git a/source/blender/yafray/intern/export_File.cpp b/source/blender/yafray/intern/export_File.cpp index 43128b35933..79e83704ee9 100755 --- a/source/blender/yafray/intern/export_File.cpp +++ b/source/blender/yafray/intern/export_File.cpp @@ -1207,7 +1207,9 @@ void yafrayFileRender_t::writeObject(Object* obj, const vector &VLR_li // Export orco coords test. // Previously was done by checking orco pointer, however this can be non-null but still not initialized. // Test the rendermaterial texco flag instead. - bool EXPORT_ORCO = ((face0mat->texco & TEXCO_ORCO)!=0); + // update2: bug #3193 it seems it has changed again with the introduction of static 'hair' particles, + // now it uses the vert pointer again as an extra test to make sure there are orco coords available + bool EXPORT_ORCO = (((face0mat->texco & TEXCO_ORCO)!=0) && (face0->v1->orco!=NULL)); string has_orco = "off"; if (EXPORT_ORCO) has_orco = "on"; -- cgit v1.2.3