From 82b21ba1663b253b4bde318599eedd062b5e9f64 Mon Sep 17 00:00:00 2001 From: Nathan Letwory Date: Mon, 28 Feb 2011 14:24:52 +0000 Subject: Fix [#26213] Collada exporter id's not unique Reported by Kevin Yoon could get same id as , prevent that by suffixing -material. --- source/blender/collada/collada_internal.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/blender/collada/collada_internal.h') diff --git a/source/blender/collada/collada_internal.h b/source/blender/collada/collada_internal.h index 815113400b4..db7dd16dfd1 100644 --- a/source/blender/collada/collada_internal.h +++ b/source/blender/collada/collada_internal.h @@ -37,6 +37,7 @@ #include "Math/COLLADABUMathMatrix4.h" #include "DNA_armature_types.h" +#include "DNA_material_types.h" #include "DNA_object_types.h" #include "BLI_math.h" @@ -94,4 +95,6 @@ extern std::string get_joint_id(Bone *bone, Object *ob_arm); extern std::string get_camera_id(Object *ob); +extern std::string get_material_id(Material *mat); + #endif /* COLLADA_INTERNAL_H */ -- cgit v1.2.3