SGRotateTransform& rot = static_cast<SGRotateTransform&>(obj);
if (fr[0].matchWord("center")) {
++fr;
- SGVec3d center;
- if (fr.readSequence(center.osg()))
+ osg::Vec3d center;
+ if (fr.readSequence(center))
fr += 3;
else
return false;
- rot.setCenter(center);
+ rot.setCenter(SGVec3d(center));
}
if (fr[0].matchWord("axis")) {
++fr;
- SGVec3d axis;
- if (fr.readSequence(axis.osg()))
+ osg::Vec3d axis;
+ if (fr.readSequence(axis))
fr += 3;
else
return false;
- rot.setCenter(axis);
+ rot.setCenter(SGVec3d(axis));
}
if (fr[0].matchWord("angle")) {
++fr;
SGScaleTransform& scale = static_cast<SGScaleTransform&>(obj);
if (fr[0].matchWord("center")) {
++fr;
- SGVec3d center;
- if (fr.readSequence(center.osg()))
+ osg::Vec3d center;
+ if (fr.readSequence(center))
fr += 3;
else
return false;
- scale.setCenter(center);
+ scale.setCenter(SGVec3d(center));
}
if (fr[0].matchWord("scaleFactor")) {
++fr;
- SGVec3d scaleFactor;
- if (fr.readSequence(scaleFactor.osg()))
+ osg::Vec3d scaleFactor;
+ if (fr.readSequence(scaleFactor))
fr += 3;
else
return false;
- scale.setScaleFactor(scaleFactor);
+ scale.setScaleFactor(SGVec3d(scaleFactor));
}
return true;
}
if (fr[0].matchWord("axis")) {
++fr;
- SGVec3d axis;
- if (fr.readSequence(axis.osg()))
+ osg::Vec3d axis;
+ if (fr.readSequence(axis))
fr += 3;
else
return false;
- trans.setAxis(axis);
+ trans.setAxis(SGVec3d(axis));
}
if (fr[0].matchWord("value")) {
++fr;