diff options
author | Nathan Letwory <nathan@letworyinteractive.com> | 2010-11-24 02:58:12 +0300 |
---|---|---|
committer | Nathan Letwory <nathan@letworyinteractive.com> | 2010-11-24 02:58:12 +0300 |
commit | c790b2c238691b5688866244f2372535e51061a1 (patch) | |
tree | 3af099c55e5edd3f74a2bdf41efc027d08a89fa7 /source/blender/collada/ImageExporter.cpp | |
parent | 250c2fe3e587816dec4637c4531050cd492a7e8e (diff) |
When exporting images also add the string name (attribute). This is optional, but it helps other viewers importing from Blender .dae exports.
Small request by factor in IRC.
Diffstat (limited to 'source/blender/collada/ImageExporter.cpp')
-rw-r--r-- | source/blender/collada/ImageExporter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/collada/ImageExporter.cpp b/source/blender/collada/ImageExporter.cpp index 3194b2269ea..240125ddd68 100644 --- a/source/blender/collada/ImageExporter.cpp +++ b/source/blender/collada/ImageExporter.cpp @@ -84,7 +84,7 @@ void ImagesExporter::operator()(Material *ma, Object *ob) } if (find(mImages.begin(), mImages.end(), name) == mImages.end()) { - COLLADASW::Image img(COLLADABU::URI(COLLADABU::URI::nativePathToUri(rel)), name); + COLLADASW::Image img(COLLADABU::URI(COLLADABU::URI::nativePathToUri(rel)), name, name); /* set name also to mNameNC. This helps other viewers import files exported from Blender better */ img.add(mSW); mImages.push_back(name); |