Fix bug #22828, "Exporting as COLLADA crashes Blender".
authorArystanbek Dyussenov <arystan.d@gmail.com>
Mon, 9 Aug 2010 18:15:50 +0000 (18:15 +0000)
committerArystanbek Dyussenov <arystan.d@gmail.com>
Mon, 9 Aug 2010 18:15:50 +0000 (18:15 +0000)
source/blender/collada/DocumentExporter.cpp

index 7a994d6b41870e295536a8d4698a1c9d7a333858..d77cd02f9e1665f4b0371257916110cc49ce783d 100644 (file)
@@ -1774,6 +1774,7 @@ public:
 
                for (int a = 0; a < MAX_MTEX; a++) {
                        if (ma->mtex[a] &&
+                               ma->mtex[a]->tex &&
                                ma->mtex[a]->tex->type == TEX_IMAGE &&
                                ma->mtex[a]->texco == TEXCO_UV){
                                indices.push_back(a);