Added check for space in option name parsing
This commit is contained in:
@@ -225,7 +225,7 @@ bool XmlNode::read(Input& input)
|
||||
input.skipWhiteSpace();
|
||||
std::string option;
|
||||
std::string value;
|
||||
while((c=input[0])>=0 && c!='>' && c!='"' && c!='\'' && c!='=')
|
||||
while((c=input[0])>=0 && c!='>' && c!='"' && c!='\'' && c!='=' && c!=' ')
|
||||
{
|
||||
option.push_back(c);
|
||||
++input;
|
||||
@@ -276,7 +276,7 @@ bool XmlNode::read(Input& input)
|
||||
|
||||
if (!option.empty())
|
||||
{
|
||||
osg::notify(osg::INFO)<<"Assigning option "<<option<<" with value "<<value<<std::endl;
|
||||
osg::notify(osg::NOTICE)<<"Assigning option "<<option<<" with value "<<value<<std::endl;
|
||||
childNode->properties[option] = value;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user