X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fcore%2Fvertexformat.cpp;fp=source%2Fcore%2Fvertexformat.cpp;h=e529f4eb2632770e91ae68b3bd221cc913ca0382;hp=908da99278defda2530f699aef308a90d116e99e;hb=86721a55699193e63c76e8a0a7b0ced0416c1cce;hpb=34e3f9d66eb394d8ad69ee66db0cca35b0a15123 diff --git a/source/core/vertexformat.cpp b/source/core/vertexformat.cpp index 908da992..e529f4eb 100644 --- a/source/core/vertexformat.cpp +++ b/source/core/vertexformat.cpp @@ -1,4 +1,5 @@ #include +#include #include #include #include @@ -141,7 +142,10 @@ void operator>>(const LexicalConverter &conv, VertexAttribute &a) else if(str=="TANGENT3") a = TANGENT3; else if(str=="BINORMAL3") - a = BINORMAL3; + { + IO::print(IO::cerr, "BINORMAL3 attribute is deprecated\n"); + a = make_indexed_attribute(GENERIC3, 5); + } else if(!convert_attribute(str, "VERTEX", 2, 4, a, VERTEX2) && !convert_attribute(str, "GROUP", 1, 4, a, GROUP1) && !convert_attribute(str, "WEIGHT", 1, 4, a, WEIGHT1) &&