From 9d04a45088c995fcebd51f5c7a484670380e9188 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 27 Aug 2014 10:15:13 +0200 Subject: [PATCH] Collada : Add missing parsing into markup --- code/ColladaParser.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/code/ColladaParser.cpp b/code/ColladaParser.cpp index b577aab0b..dffb04c3d 100644 --- a/code/ColladaParser.cpp +++ b/code/ColladaParser.cpp @@ -1163,6 +1163,19 @@ void ColladaParser::ReadEffectProfileCommon( Collada::Effect& pEffect) // just syntactic sugar } + else if( mFormat == FV_1_4_n && IsElement( "image")) + { + // read ID. Another entry which is "optional" by design but obligatory in reality + int attrID = GetAttribute( "id"); + std::string id = mReader->getAttributeValue( attrID); + + // create an entry and store it in the library under its ID + mImageLibrary[id] = Image(); + + // read on from there + ReadImage( mImageLibrary[id]); + } + /* Shading modes */ else if( IsElement( "phong")) pEffect.mShadeType = Shade_Phong;