From bce664dcabfa7b6166e8144e91e2454439c75698 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 26 Sep 2008 10:43:18 +0000 Subject: [PATCH] From Fabio Mierlo, "n the lines 428 and 430 of obj.cpp file from release 2.6.0, the parser use only the first 7 characters to compare the string "map_opacity " and to copy the followed parameter, but the string have 12 characters." --- src/osgPlugins/obj/obj.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/osgPlugins/obj/obj.cpp b/src/osgPlugins/obj/obj.cpp index 61b788b61..a3f7ec2bc 100644 --- a/src/osgPlugins/obj/obj.cpp +++ b/src/osgPlugins/obj/obj.cpp @@ -425,9 +425,9 @@ bool Model::readMTL(std::istream& fin) { material->map_Ks = parseTexture(strip(line+7), *material); } - else if (strncmp(line,"map_opacity ",7)==0) + else if (strncmp(line,"map_opacity ",12)==0) { - material->map_opacity = parseTexture(strip(line+7), *material); + material->map_opacity = parseTexture(strip(line+12), *material); } else if (strcmp(line,"refl")==0 || strncmp(line,"refl ",5)==0) {