1
0
mirror of https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git synced 2026-07-13 08:24:27 +00:00

Updated draw_colored_band() according to the new colors.

+ some code refactoring
This commit is contained in:
YuSanka
2019-01-30 14:45:18 +01:00
parent 7957675a97
commit 5a28693ff4
5 changed files with 14 additions and 23 deletions
+1 -1
View File
@@ -740,7 +740,7 @@ void Preview::load_print_as_fff()
if (! gcode_preview_data_valid) {
//FIXME accessing full_config() is pretty expensive.
// Only initialize color_print_values for the initial preview, not for the full preview where the color_print_values is extracted from the G-code.
const auto& config = wxGetApp().preset_bundle->full_config();
const auto& config = wxGetApp().preset_bundle->project_config;
color_print_values = config.option<ConfigOptionFloats>("colorprint_heights")->values;
}
}