diff --git a/src/osgPlugins/osg/Node.cpp b/src/osgPlugins/osg/Node.cpp index 4e53173c9..62d1fa136 100644 --- a/src/osgPlugins/osg/Node.cpp +++ b/src/osgPlugins/osg/Node.cpp @@ -34,6 +34,14 @@ bool Node_readLocalData(Object& obj, Input& fr) iteratorAdvanced = true; } + unsigned int mask = node.getNodeMask(); + if (fr[0].matchWord("nodeMask") && fr[1].getUInt(mask)) + { + node.setNodeMask(mask); + fr+=2; + iteratorAdvanced = true; + } + if (fr[0].matchWord("cullingActive")) { if (fr[1].matchWord("FALSE")) @@ -136,6 +144,8 @@ bool Node_writeLocalData(const Object& obj, Output& fw) if (!node.getName().empty()) fw.indent() << "name "<