src/linetypes/modelobject.cpp

changeset 1406
37fffb682d2f
parent 1403
7a2d84112983
child 1416
ba63c7286767
equal deleted inserted replaced
1405:d2bf2e59a3ef 1406:37fffb682d2f
594 serializer << m_coords[1]; 594 serializer << m_coords[1];
595 serializer << m_coords[2]; 595 serializer << m_coords[2];
596 serializer << m_coords[3]; 596 serializer << m_coords[3];
597 } 597 }
598 598
599 void LDObject::restore(LDObjectState& archive)
600 {
601 Serializer restorer {archive, Serializer::Restore};
602 Serializer::Archive before = Serializer::store(this);
603 serialize(restorer);
604 emit modified(before, Serializer::store(this));
605 }
606
599 void LDMatrixObject::serialize(Serializer& serializer) 607 void LDMatrixObject::serialize(Serializer& serializer)
600 { 608 {
601 LDObject::serialize(serializer); 609 LDObject::serialize(serializer);
602 serializer << m_transformationMatrix; 610 serializer << m_transformationMatrix;
603 } 611 }

mercurial