mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 00:37:51 -06:00
GCodeViewer -> Draw alphed extrusion paths into legend when set as not visible
This commit is contained in:
parent
eadad6c1d1
commit
4ea96340d8
3 changed files with 20 additions and 9 deletions
|
@ -54,6 +54,8 @@ class GCodeViewer
|
|||
feedrate == move.feedrate && fan_speed == move.fan_speed && volumetric_rate == move.volumetric_rate() &&
|
||||
extruder_id == move.extruder_id && cp_color_id == move.cp_color_id;
|
||||
}
|
||||
|
||||
static bool is_path_visible(unsigned int flags, const Path& path);
|
||||
};
|
||||
|
||||
// buffer containing indices data and shader for a specific toolpath type
|
||||
|
@ -130,6 +132,10 @@ class GCodeViewer
|
|||
|
||||
void reset_ranges() { ranges.reset(); }
|
||||
|
||||
bool is_role_visible(ExtrusionRole role) const {
|
||||
return role < erCount && (role_visibility_flags & (1 << role)) != 0;
|
||||
}
|
||||
|
||||
static bool is_role_visible(unsigned int flags, ExtrusionRole role) {
|
||||
return role < erCount && (flags & (1 << role)) != 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue