From 9885c3e55152b350161414cbe970db95ac4f0465 Mon Sep 17 00:00:00 2001 From: Gargaj Date: Fri, 28 Aug 2015 16:20:17 +0200 Subject: [PATCH] add opencollada extension --- code/ColladaParser.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/code/ColladaParser.cpp b/code/ColladaParser.cpp index ddfab79f1..cdc3cedeb 100644 --- a/code/ColladaParser.cpp +++ b/code/ColladaParser.cpp @@ -1067,6 +1067,12 @@ void ColladaParser::ReadLight( Collada::Light& pLight) pLight.mFalloffAngle = ReadFloatFromTextContent(); TestClosing("hotspot_beam"); } + // OpenCOLLADA extensions + // ------------------------------------------------------- + else if (IsElement("decay_falloff")) { + pLight.mOuterAngle = ReadFloatFromTextContent(); + TestClosing("decay_falloff"); + } } else if( mReader->getNodeType() == irr::io::EXN_ELEMENT_END) { if( strcmp( mReader->getNodeName(), "light") == 0)