Hide and show joints in the browser, like other items (#1168)
Fixes #1160.
This commit is contained in:
1 parent
e3459edea8
commit
229de1484c
15 files changed
+470
-15
No files matched your search
@@ -1709,6 +1709,9 @@ pub struct Visibility {
|
||||
pub hidden_sketches: Vec<u64>,
|
||||
/// Finished sketches shown although a feature uses them.
|
||||
pub shown_sketches: Vec<u64>,
|
||||
/// Assembly joints by id: their glyphs are not drawn (they still constrain and move).
|
||||
#[serde(skip_serializing_if = "Vec::is_empty")]
|
||||
pub hidden_joints: Vec<u64>,
|
||||
}
|
||||
|
||||
impl Visibility {
|
||||
@@ -1719,6 +1722,7 @@ impl Visibility {
|
||||
&& self.hidden_origin.is_empty()
|
||||
&& self.hidden_sketches.is_empty()
|
||||
&& self.shown_sketches.is_empty()
|
||||
&& self.hidden_joints.is_empty()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user