mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 01:07:57 -06:00
ColorPrint improvement
+ Select "Color Print" preview type if it's not after add/delete new color change + Added level heights to the color legend instead of "Color N"
This commit is contained in:
parent
4c8f3f6ea7
commit
f203f6fbd9
6 changed files with 35 additions and 9 deletions
|
@ -3121,8 +3121,8 @@ bool GLCanvas3D::LegendTexture::generate(const GCodePreviewData& preview_data, c
|
|||
auto title = _(preview_data.get_legend_title());
|
||||
|
||||
const auto& config = wxGetApp().preset_bundle->full_config();
|
||||
const int color_print_cnt = config.option<ConfigOptionFloats>("colorprint_heights")->values.size();
|
||||
const GCodePreviewData::LegendItemsList& items = preview_data.get_legend_items(tool_colors, color_print_cnt);
|
||||
const std::vector<double>& color_print_values = config.option<ConfigOptionFloats>("colorprint_heights")->values;
|
||||
const GCodePreviewData::LegendItemsList& items = preview_data.get_legend_items(tool_colors, color_print_values);
|
||||
|
||||
unsigned int items_count = (unsigned int)items.size();
|
||||
if (items_count == 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue