Prevent crash if image for image texture is not set, part II.
authorNathan Letwory <nathan@letworyinteractive.com>
Thu, 30 Sep 2010 11:49:48 +0000 (11:49 +0000)
committerNathan Letwory <nathan@letworyinteractive.com>
Thu, 30 Sep 2010 11:49:48 +0000 (11:49 +0000)
source/blender/collada/DocumentExporter.cpp

index 1bfa4f7..ba72137 100644 (file)
@@ -1762,6 +1762,9 @@ public:
                for (a = 0; a < tex_indices.size(); a++) {
                        MTex *t = ma->mtex[tex_indices[a]];
                        Image *ima = t->tex->ima;
+                       
+                       // Image not set for texture
+                       if(!ima) continue;
 
                        // we assume map input is always TEXCO_UV