mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 18:12:10 +00:00
Fix:filament svg icon error
jira: STUDIO-10223 Change-Id: I93f805cfa7780e666b4e2f2430c4fcdfa3de0c8a (cherry picked from commit e288462439ddf34db0bf10b55970d07ded662ccb)
This commit is contained in:
@@ -3177,7 +3177,7 @@ void ImGuiWrapper::filament_group(const std::string &filament_type, const char *
|
||||
Slic3r::GUI::BitmapCache::parse_color4(hex_color, rgba);
|
||||
std::string svg_path = "/images/filament_green.svg";
|
||||
if (rgba[3] == 0x00) {
|
||||
svg_path = "/images/filament_transparent.svg";
|
||||
svg_path = "/images/filament_transparent2.svg";
|
||||
}
|
||||
BitmapCache::load_from_svg_file_change_color(Slic3r::resources_dir() + svg_path, img_size.x, img_size.y, transparent, hex_color);
|
||||
ImGui::BeginGroup();
|
||||
|
||||
Reference in New Issue
Block a user