use super::{FeatureInfo, Workbench, WorkbenchButton};
fn includes(feature: &FeatureInfo<'_>) -> bool {
!feature.type_code.starts_with("SM.")
&& !matches!(feature.type_code, "ACOMP" | "APAT")
&& !super::gears::is_gear_type(feature.type_code)
}
pub const DRAFT_ANALYSIS_BUTTON_ID: &str = "modeling.draft_analysis";
static BUTTONS: &[WorkbenchButton] = &[WorkbenchButton {
id: DRAFT_ANALYSIS_BUTTON_ID,
glyph: "\u{E0FC}",
ribbon_path: "Home/Blend/Draft Analysis",
size: super::CommandSize::Compact,
tooltip: "Draft Analysis \u{2014} colour faces by their draft against a pull direction and a minimum (display only)",
when: Some(|state| state.engine.settings.workbench != "all" && !state.engine.any_sketch_mode()),
pressed: Some(|state| state.engine.draft_analysis_active()),
disabled: None,
caption: None,
menu: &[],
}];
static PANELS: &[&str] = &[super::pmi::PANEL_ID];
pub static MODELING: Workbench = Workbench {
id: "modeling",
label: "Modeling",
glyph: "\u{E061}",
includes,
buttons: BUTTONS,
panels: PANELS,
};