Fixes for Win32 build.
This commit is contained in:
parent
4a3cc5c182
commit
84332f5b77
@ -62,8 +62,7 @@ bool Switch::removeChild( Node *child )
|
||||
|
||||
_values.erase(_values.begin()+pos);
|
||||
|
||||
return Group::removeChild(child);
|
||||
|
||||
return Group::removeChild(child);
|
||||
}
|
||||
|
||||
void Switch::setValue(unsigned int pos,bool value)
|
||||
|
@ -911,7 +911,7 @@ osg::Group* ConvertFromFLT::visitSwitch(osg::Group& osgParent, SwitchRecord* rec
|
||||
|
||||
if (nChild<osgSwitch->getNumChildren())
|
||||
{
|
||||
osgSwitch->setValue(nChild,(pSSwitch->aMask[nMaskWord] & (uint32(1) << nMaskBit)));
|
||||
osgSwitch->setValue(nChild,(pSSwitch->aMask[nMaskWord] & (uint32(1) << nMaskBit))!=0);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -64,7 +64,7 @@ bool Switch_readLocalData(Object& obj, Input& fr)
|
||||
int value;
|
||||
if (fr[0].getInt(value))
|
||||
{
|
||||
sw.setValue(pos,value);
|
||||
sw.setValue(value);
|
||||
++pos;
|
||||
}
|
||||
++fr;
|
||||
@ -96,7 +96,7 @@ bool Switch_writeLocalData(const Object& obj, Output& fw)
|
||||
itr!=values.end();
|
||||
++itr)
|
||||
{
|
||||
fw.indent()<<*itr<<endl;
|
||||
fw.indent()<<*itr<<std::endl;
|
||||
}
|
||||
fw.moveOut();
|
||||
fw.indent()<<"}"<< std::endl;
|
||||
|
Loading…
Reference in New Issue
Block a user