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))"
This commit is contained in:
Robert Osfield
2008-05-27 11:07:52 +00:00
parent 3c6b6e4d97
commit dd6d04e088

View File

@@ -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;