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:
authorgaiaclary <gaia.clary@machinimatrix.org>2014-05-01 16:52:10 +0400
committergaiaclary <gaia.clary@machinimatrix.org>2014-05-01 16:52:36 +0400
commit8bdac4d0bc21143bafbdbb9b45ab521dfedfa369 (patch)
treeed154990132eeba48b53e72b998b14a1ade320b7 /source/blender/collada/MeshImporter.h
parent091f13a6185a8b41a40e22e1f81bc496335440c1 (diff)
fix T39967: Added support for Import/export of vertex color layers
Diffstat (limited to 'source/blender/collada/MeshImporter.h')
-rw-r--r--source/blender/collada/MeshImporter.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/source/blender/collada/MeshImporter.h b/source/blender/collada/MeshImporter.h
index 5275420f4b5..9fc1d777f62 100644
--- a/source/blender/collada/MeshImporter.h
+++ b/source/blender/collada/MeshImporter.h
@@ -77,6 +77,14 @@ public:
void getUV(int uv_index, float *uv);
};
+class VCOLDataWrapper
+{
+ COLLADAFW::MeshVertexData *mVData;
+public:
+ VCOLDataWrapper(COLLADAFW::MeshVertexData& vdata);
+ void get_vcol(int v_index, MLoopCol *mloopcol);
+};
+
class MeshImporter : public MeshImporterBase
{
private:
@@ -113,6 +121,12 @@ private:
COLLADAFW::IndexList& index_list,
int count);
+ void set_vcol(MLoopCol *mloopcol,
+ VCOLDataWrapper &vob,
+ int loop_index,
+ COLLADAFW::IndexList& index_list,
+ int count);
+
#ifdef COLLADA_DEBUG
void print_index_list(COLLADAFW::IndexList& index_list);
#endif