From f4a0ab81b1d711c1151bee390e0ed5189d2f5560 Mon Sep 17 00:00:00 2001 From: Turo Lamminen Date: Thu, 14 Sep 2017 11:25:19 +0300 Subject: [PATCH] AssbinExporter: Add Write specialization for aiColor3D --- code/AssbinExporter.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/code/AssbinExporter.cpp b/code/AssbinExporter.cpp index 4ea261718..bd2ed0b95 100644 --- a/code/AssbinExporter.cpp +++ b/code/AssbinExporter.cpp @@ -139,6 +139,17 @@ inline size_t Write(IOStream * stream, const aiVector3D& v) return t; } +// ----------------------------------------------------------------------------------- +// Serialize a color value +template <> +inline size_t Write(IOStream * stream, const aiColor3D& v) +{ + size_t t = Write(stream,v.r); + t += Write(stream,v.g); + t += Write(stream,v.b); + return t; +} + // ----------------------------------------------------------------------------------- // Serialize a color value template <>