diff options
author | Gaia Clary <gaia.clary@machinimatrix.org> | 2019-05-23 13:17:17 +0300 |
---|---|---|
committer | Gaia Clary <gaia.clary@machinimatrix.org> | 2019-05-23 13:29:20 +0300 |
commit | 6be9d19951ed460829d379aa90953b14a9f281f2 (patch) | |
tree | 45fe275c232ff0b4fb0e4e7205d53c8fdd6f8e9a /source/blender/collada/ImageExporter.cpp | |
parent | e9cf9e0a397f9589e00d980f0c0489641e7ed57e (diff) |
Collada exporter update
Added new feature: Collada: global axis rotation upon export (UI)
The new feature allows to specify the target rest coordinate system upon export.
This allows for example to export a character that is in Blender orientation (Y forward)
to match the Secondlife orientation where (-X forward)
- Refactor:Added new utility methods to collada_utils
Made BCMatrix class more powerfull
moved Blender related structures into new BlenderContext class
added class wrapper to encapsulate ExportSettings structure
Added blender context getters to ExportSettings
added access methods to BlenderContext into ExportSettings class
Moved class BCMatrix into BlenderContext
moved utility functions from collada_util into BlenderContext
replace own function for parenting by a call to ED_object_parent_set()
- Cleanup: removed obsolete parameters from methods
renamed parameters for better understanding
cleanup whitespace and indentation
removed obsolete comments
Diffstat (limited to 'source/blender/collada/ImageExporter.cpp')
-rw-r--r-- | source/blender/collada/ImageExporter.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/collada/ImageExporter.cpp b/source/blender/collada/ImageExporter.cpp index b606799efde..71201c8a55c 100644 --- a/source/blender/collada/ImageExporter.cpp +++ b/source/blender/collada/ImageExporter.cpp @@ -43,7 +43,7 @@ extern "C" { #include "MaterialExporter.h" ImagesExporter::ImagesExporter(COLLADASW::StreamWriter *sw, - const ExportSettings *export_settings, + BCExportSettings &export_settings, KeyImageMap &key_image_map) : COLLADASW::LibraryImages(sw), export_settings(export_settings), key_image_map(key_image_map) { @@ -76,7 +76,7 @@ void ImagesExporter::export_UV_Image(Image *image, bool use_copies) char export_file[FILE_MAX]; /* Destination folder for exported assets */ - BLI_split_dir_part(this->export_settings->filepath, export_dir, sizeof(export_dir)); + BLI_split_dir_part(this->export_settings.get_filepath(), export_dir, sizeof(export_dir)); if (is_generated || is_dirty || use_copies || is_packed) { @@ -152,7 +152,7 @@ void ImagesExporter::export_UV_Image(Image *image, bool use_copies) void ImagesExporter::exportImages(Scene *sce) { - bool use_texture_copies = this->export_settings->use_texture_copies; + bool use_texture_copies = this->export_settings.get_use_texture_copies(); openLibrary(); KeyImageMap::iterator iter; |