[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [52619] trunk/blender/source/blender/ collada/MaterialExporter.cpp: Fix #33168: collada export added incorrect -material postfix to material names.

Brecht Van Lommel brechtvanlommel at pandora.be
Tue Nov 27 22:26:06 CET 2012


Revision: 52619
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=52619
Author:   blendix
Date:     2012-11-27 21:26:06 +0000 (Tue, 27 Nov 2012)
Log Message:
-----------
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.

Modified Paths:
--------------
    trunk/blender/source/blender/collada/MaterialExporter.cpp

Modified: trunk/blender/source/blender/collada/MaterialExporter.cpp
===================================================================
--- trunk/blender/source/blender/collada/MaterialExporter.cpp	2012-11-27 20:12:00 UTC (rev 52618)
+++ trunk/blender/source/blender/collada/MaterialExporter.cpp	2012-11-27 21:26:06 UTC (rev 52619)
@@ -70,7 +70,7 @@
 {
 	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));




More information about the Bf-blender-cvs mailing list