Apply patch 4636051. COLLADA: Export selection.
Original patch by Jan Diederich, adapted by Pelle Johnsen. Review assistance by Daniel Tavares. This patch adds an option to export only the selection.
This commit is contained in:
@@ -71,12 +71,12 @@ bool ImagesExporter::hasImages(Scene *sce)
|
||||
return false;
|
||||
}
|
||||
|
||||
void ImagesExporter::exportImages(Scene *sce)
|
||||
void ImagesExporter::exportImages(Scene *sce, bool export_selected)
|
||||
{
|
||||
if(hasImages(sce)) {
|
||||
openLibrary();
|
||||
MaterialFunctor mf;
|
||||
mf.forEachMaterialInScene<ImagesExporter>(sce, *this);
|
||||
mf.forEachMaterialInScene<ImagesExporter>(sce, *this, export_selected);
|
||||
|
||||
closeLibrary();
|
||||
}
|
||||
|
Reference in New Issue
Block a user