From e8465555cb18aa2d337accf5eb13e1d270af3424 Mon Sep 17 00:00:00 2001 From: Nathan Letwory Date: Thu, 30 Sep 2010 11:49:48 +0000 Subject: Prevent crash if image for image texture is not set, part II. --- source/blender/collada/DocumentExporter.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/blender/collada/DocumentExporter.cpp') 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 -- cgit v1.2.3