diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2014-04-27 20:43:50 +0400 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2014-04-27 20:44:26 +0400 |
commit | f0ec202099aa473778497f810ff6cb804511c77d (patch) | |
tree | e815947da62ca4427c96c81b3ad39a7caf8a8eac /source/blender | |
parent | 835765926f486256b4fb0aa838154679855b9cb2 (diff) |
Fix T39921: Collada export creates invalid XML when using Track To constraint
Constraints are no ID...
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/collada/SceneExporter.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/collada/SceneExporter.cpp b/source/blender/collada/SceneExporter.cpp index 1be90df1232..b50b8b0a302 100644 --- a/source/blender/collada/SceneExporter.cpp +++ b/source/blender/collada/SceneExporter.cpp @@ -193,8 +193,10 @@ void SceneExporter::writeNodes(Object *ob, Scene *sce) if (BLI_listbase_is_empty(&ob->constraints) == false) { bConstraint *con = (bConstraint *) ob->constraints.first; while (con) { - std::string con_name(id_name(con)); + std::string con_name(translate_id(con->name)); std::string con_tag = con_name + "_constraint"; + printf("%s\n", con_name.c_str()); + printf("%s\n\n", con_tag.c_str()); colladaNode.addExtraTechniqueChildParameter("blender",con_tag,"type",con->type); colladaNode.addExtraTechniqueChildParameter("blender",con_tag,"enforce",con->enforce); colladaNode.addExtraTechniqueChildParameter("blender",con_tag,"flag",con->flag); |