Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGaia Clary <gaia.clary@machinimatrix.org>2012-06-22 20:16:58 +0400
committerGaia Clary <gaia.clary@machinimatrix.org>2012-06-22 20:16:58 +0400
commitadf3a5e33229633be9b3ea3639a1baa6596ec7ff (patch)
tree7bfe447274b86e9d91c4952b5bf765827b365ecf /source/blender/collada/collada_utils.cpp
parent257283e030792157d24c2cd7846a92de9572b846 (diff)
Collada: (Export) Added export of surface textures, and control over exported uv layers
Diffstat (limited to 'source/blender/collada/collada_utils.cpp')
-rw-r--r--source/blender/collada/collada_utils.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/collada/collada_utils.cpp b/source/blender/collada/collada_utils.cpp
index 62ae5d38727..cb9da9918be 100644
--- a/source/blender/collada/collada_utils.cpp
+++ b/source/blender/collada/collada_utils.cpp
@@ -275,3 +275,9 @@ bool bc_is_root_bone(Bone *aBone, bool deform_bones_only)
else
return !(aBone->parent);
}
+
+int bc_get_active_UVLayer(Object *ob)
+{
+ Mesh *me = (Mesh *)ob->data;
+ return CustomData_get_active_layer_index(&me->fdata, CD_MTFACE);
+}