git-svn-id: svn://db.shs.com.ru/libs@707 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
@@ -642,7 +642,8 @@ QDataStream & operator <<(QDataStream & s, const ObjectBase * p) {
|
||||
//qDebug() << "place camera ...";
|
||||
const Camera * c = (const Camera*)p;
|
||||
cs.add(200, c->aim()).add(201, c->fov_).add(202, c->depth_start)
|
||||
.add(206, c->mirror_x).add(207, c->mirror_y).add(208, c->distance());
|
||||
.add(206, c->mirror_x).add(207, c->mirror_y).add(208, c->distance())
|
||||
.add(209, c->roll_);
|
||||
}
|
||||
//qDebug() << "place" << p->name() << cs.data().size() << s.device()->size();
|
||||
s << cs.data();
|
||||
@@ -700,6 +701,7 @@ QDataStream & operator >>(QDataStream & s, ObjectBase *& p) {
|
||||
case 206: if (c) c->mirror_x = cs.getData<bool>(); break;
|
||||
case 207: if (c) c->mirror_y = cs.getData<bool>(); break;
|
||||
case 208: if (c) c->setDistance(cs.getData<double>()); break;
|
||||
case 209: if (c) c->roll_ = cs.getData<GLfloat>(); break;
|
||||
}
|
||||
}
|
||||
//qDebug() << p->name() << ccnt;
|
||||
|
||||
Reference in New Issue
Block a user