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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user