Fix #33168: collada export added incorrect -material postfix to material names.
In the bug report it was also mentioned that special characters should be preserved for names, however the collada 1.4 specification does not allow this. Version 1.5 does, but we are still writing 1.4 files and files with such special characters will then fail to open in some applications.
This commit is contained in:
@@ -70,7 +70,7 @@ void MaterialsExporter::operator()(Material *ma, Object *ob)
|
||||
{
|
||||
std::string name(id_name(ma));
|
||||
|
||||
openMaterial(get_material_id(ma), get_material_id(ma));
|
||||
openMaterial(get_material_id(ma), translate_id(name));
|
||||
|
||||
std::string efid = translate_id(name) + "-effect";
|
||||
addInstanceEffect(COLLADASW::URI(COLLADABU::Utils::EMPTY_STRING, efid));
|
||||
|
||||
Reference in New Issue
Block a user