From dd6d04e08894b4b58808b919d413985ba8fcac6f Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 27 May 2008 11:07:52 +0000 Subject: [PATCH] From Andrew Bettison, "Problem: the LineStipple pattern when read from an OSG node file is always 0xFFFF, even though specified otherwise in the OSG file. Cause: possibly a copy/paste typo in src/osgPlugins/osg/LineStipple.cc, line 61: if (fr[0].matchWord("functionMask") && fr[1].getUInt(mask)) Solution: change to: if (fr[0].matchWord("pattern") && fr[1].getUInt(mask))" --- src/osgPlugins/osg/LineStipple.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osgPlugins/osg/LineStipple.cpp b/src/osgPlugins/osg/LineStipple.cpp index f7e15820a..59324ec92 100644 --- a/src/osgPlugins/osg/LineStipple.cpp +++ b/src/osgPlugins/osg/LineStipple.cpp @@ -39,7 +39,7 @@ bool LineStipple_readLocalData(Object& obj, Input& fr) } unsigned int mask = linestipple.getPattern(); - if (fr[0].matchWord("functionMask") && fr[1].getUInt(mask)) + if (fr[0].matchWord("pattern") && fr[1].getUInt(mask)) { linestipple.setPattern(mask); fr+=2;