mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-25 23:54:00 -06:00
Fix unmarked failed holes on first gizmo opening
This commit is contained in:
parent
3d0d96d8f9
commit
6d58546aef
1 changed files with 4 additions and 4 deletions
|
@ -42,12 +42,12 @@ struct DrainHole
|
||||||
: pos(Vec3f::Zero()), normal(Vec3f::UnitZ()), radius(5.f), height(10.f)
|
: pos(Vec3f::Zero()), normal(Vec3f::UnitZ()), radius(5.f), height(10.f)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
DrainHole(Vec3f p, Vec3f n, float r, float h)
|
DrainHole(Vec3f p, Vec3f n, float r, float h, bool fl = false)
|
||||||
: pos(p), normal(n), radius(r), height(h)
|
: pos(p), normal(n), radius(r), height(h), failed(fl)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
DrainHole(const DrainHole& rhs) :
|
DrainHole(const DrainHole& rhs) :
|
||||||
DrainHole(rhs.pos, rhs.normal, rhs.radius, rhs.height) {}
|
DrainHole(rhs.pos, rhs.normal, rhs.radius, rhs.height, rhs.failed) {}
|
||||||
|
|
||||||
bool operator==(const DrainHole &sp) const;
|
bool operator==(const DrainHole &sp) const;
|
||||||
|
|
||||||
|
@ -62,7 +62,7 @@ struct DrainHole
|
||||||
|
|
||||||
template<class Archive> inline void serialize(Archive &ar)
|
template<class Archive> inline void serialize(Archive &ar)
|
||||||
{
|
{
|
||||||
ar(pos, normal, radius, height);
|
ar(pos, normal, radius, height, failed);
|
||||||
}
|
}
|
||||||
|
|
||||||
static constexpr size_t steps = 32;
|
static constexpr size_t steps = 32;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue