Skip to content

Commit

Permalink
Fixed handling of rotations reading from .osg of osg::Shapes.
Browse files Browse the repository at this point in the history
  • Loading branch information
robertosfield committed Jan 22, 2003
1 parent ea35796 commit fbeae00
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/osgPlugins/osg/Shape.cpp
Expand Up @@ -117,7 +117,7 @@ bool Box_readLocalData(Object& obj, Input& fr)
fr[1].getFloat(rotation.x());
fr[2].getFloat(rotation.y());
fr[3].getFloat(rotation.z());
fr[3].getFloat(rotation.w());
fr[4].getFloat(rotation.w());
box.setRotation(rotation);
fr+=5;
iteratorAdvanced = true;
Expand Down Expand Up @@ -195,7 +195,7 @@ bool Cone_readLocalData(Object& obj, Input& fr)
fr[1].getFloat(rotation.x());
fr[2].getFloat(rotation.y());
fr[3].getFloat(rotation.z());
fr[3].getFloat(rotation.w());
fr[4].getFloat(rotation.w());
cone.setRotation(rotation);
fr+=5;
iteratorAdvanced = true;
Expand Down Expand Up @@ -275,7 +275,7 @@ bool Cylinder_readLocalData(Object& obj, Input& fr)
fr[1].getFloat(rotation.x());
fr[2].getFloat(rotation.y());
fr[3].getFloat(rotation.z());
fr[3].getFloat(rotation.w());
fr[4].getFloat(rotation.w());
cylinder.setRotation(rotation);
fr+=5;
iteratorAdvanced = true;
Expand Down Expand Up @@ -353,7 +353,7 @@ bool HeightField_readLocalData(Object& obj, Input& fr)
fr[1].getFloat(rotation.x());
fr[2].getFloat(rotation.y());
fr[3].getFloat(rotation.z());
fr[3].getFloat(rotation.w());
fr[4].getFloat(rotation.w());
heightfield.setRotation(rotation);
fr+=5;
iteratorAdvanced = true;
Expand Down

0 comments on commit fbeae00

Please sign in to comment.