Page Menu
Home
Search
Configure Global Search
Log In
Files
F18868
collada_odd_material_names.patch
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Authored By
Gaia Clary (gaiaclary)
Nov 13 2013, 4:12 PM
Size
1 KB
Subscribers
None
collada_odd_material_names.patch
View Options
Index: source/blender/collada/GeometryExporter.cpp
===================================================================
--- source/blender/collada/GeometryExporter.cpp (revision 46347)
+++ source/blender/collada/GeometryExporter.cpp (working copy)
@@ -177,7 +177,7 @@
// sets material name
if (ma) {
std::ostringstream ostr;
- ostr << translate_id(id_name(ma)) << material_index+1;
+ ostr << translate_id(id_name(ma));
polylist.setMaterial(ostr.str());
}
Index: source/blender/collada/InstanceWriter.cpp
===================================================================
--- source/blender/collada/InstanceWriter.cpp (revision 46347)
+++ source/blender/collada/InstanceWriter.cpp (working copy)
@@ -52,7 +52,7 @@
std::string matid(get_material_id(ma));
matid = translate_id(matid);
std::ostringstream ostr;
- ostr << translate_id(id_name(ma)) << a+1;
+ ostr << translate_id(id_name(ma));
COLLADASW::InstanceMaterial im(ostr.str(), COLLADASW::URI(COLLADABU::Utils::EMPTY_STRING, matid));
// create <bind_vertex_input> for each uv map
File Metadata
Details
Mime Type
text/x-diff
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
a0/5f/10b9a16e8eb104321905129df313
Event Timeline
Log In to Comment