misc changes from trunk (avoid confusion since these were not intentional differences)
[blender.git] / source / blender / collada / MeshImporter.cpp
index 26ec7be1002a5e1e4728afa35c4f2b4a84019490..ebfeb0c6301686507fe0c2240cb77a447f5a6d8e 100644 (file)
@@ -746,6 +746,9 @@ MTex *MeshImporter::assign_textures_to_uvlayer(COLLADAFW::TextureCoordinateBindi
        
        const CustomData *data = &me->fdata;
        int layer_index = CustomData_get_layer_index(data, CD_MTFACE);
+
+       if(layer_index == -1) return NULL;
+
        CustomDataLayer *cdl = &data->layers[layer_index+setindex];
        
        /* set uvname to bind_vertex_input semantic */