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 } |