Fixed the order of setting of CenterMode
This commit is contained in:
parent
e5b5494fe1
commit
9c04527cbe
@ -66,9 +66,11 @@ void LOD::read(DataInputStream* in){
|
||||
if ( in->getVersion() > VERSION_0002 )
|
||||
setRadius(in->readFloat());
|
||||
|
||||
// Read centermode
|
||||
setCenterMode((osg::LOD::CenterMode)in->readInt());
|
||||
setCenter(in->readVec3());
|
||||
// Read centermode and center
|
||||
osg::LOD::CenterMode centerMode = (osg::LOD::CenterMode)in->readInt();
|
||||
osg::Vec3 center = in->readVec3();
|
||||
setCenter(center);
|
||||
setCenterMode(centerMode);
|
||||
|
||||
if ( in->getVersion() > VERSION_0002 )
|
||||
setRangeMode((RangeMode)in->readInt());
|
||||
|
Loading…
Reference in New Issue
Block a user