collada: export UV Textures as materials. Note: the reimport of the exported collada...
[blender.git] / source / blender / collada / MaterialExporter.cpp
index a91487094fa8be7152abc4c22b2cd3d52022cf4e..94e9b7661e4e33dca32d1b1bca37699a9e8ae0c8 100644 (file)
@@ -49,8 +49,7 @@ void MaterialsExporter::exportMaterials(Scene *sce)
                        closeLibrary();
                }
        }
                        closeLibrary();
                }
        }
-#if 0
-       // Temporary discarded (to keep consistent commits)
+
        else if (this->export_settings->export_texture_type == BC_TEXTURE_TYPE_UV)
        {
                std::set<Image *> uv_images = bc_getUVImages(sce, !this->export_settings->active_uv_only);
        else if (this->export_settings->export_texture_type == BC_TEXTURE_TYPE_UV)
        {
                std::set<Image *> uv_images = bc_getUVImages(sce, !this->export_settings->active_uv_only);
@@ -72,7 +71,7 @@ void MaterialsExporter::exportMaterials(Scene *sce)
                        closeLibrary();
                }
        }
                        closeLibrary();
                }
        }
-#endif
+
 }
 
 bool MaterialsExporter::hasMaterials(Scene *sce)
 }
 
 bool MaterialsExporter::hasMaterials(Scene *sce)