diff options
author | Nathan Letwory <nathan@letworyinteractive.com> | 2010-09-30 15:49:48 +0400 |
---|---|---|
committer | Nathan Letwory <nathan@letworyinteractive.com> | 2010-09-30 15:49:48 +0400 |
commit | e8465555cb18aa2d337accf5eb13e1d270af3424 (patch) | |
tree | be9c8f1d100c8219360447e51145d3887afc7106 /source/blender/collada/DocumentExporter.cpp | |
parent | 0d1a9c77840e0c6442e23b6c32564a5a52b2d5f7 (diff) |
Prevent crash if image for image texture is not set, part II.
Diffstat (limited to 'source/blender/collada/DocumentExporter.cpp')
-rw-r--r-- | source/blender/collada/DocumentExporter.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/collada/DocumentExporter.cpp b/source/blender/collada/DocumentExporter.cpp index 1bfa4f7e57c..ba721377bbc 100644 --- a/source/blender/collada/DocumentExporter.cpp +++ b/source/blender/collada/DocumentExporter.cpp @@ -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 |