mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-20 21:27:52 -06:00
FIX: [STUDIO-3345] take snapshot for mesh boolean
Change-Id: I316a94b7f1122d48c5499b22c44a4c55545d2703
This commit is contained in:
parent
257e2e0bbb
commit
f55f4e60bb
2 changed files with 23 additions and 0 deletions
|
@ -30,6 +30,10 @@ struct VolumeInfo {
|
|||
volume_idx = -1;
|
||||
trafo = Transform3d::Identity();
|
||||
};
|
||||
template<class Archive>
|
||||
void serialize(Archive& ar) {
|
||||
ar(volume_idx, trafo);
|
||||
}
|
||||
};
|
||||
class GLGizmoMeshBoolean : public GLGizmoBase
|
||||
{
|
||||
|
@ -63,6 +67,9 @@ protected:
|
|||
virtual CommonGizmosDataID on_get_requirements() const override;
|
||||
virtual void on_render_input_window(float x, float y, float bottom_limit);
|
||||
|
||||
void on_load(cereal::BinaryInputArchive &ar) override;
|
||||
void on_save(cereal::BinaryOutputArchive &ar) const override;
|
||||
|
||||
private:
|
||||
bool m_enable{ false };
|
||||
MeshBooleanOperation m_operation_mode;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue