mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-14 23:06:13 +08:00
Fix for opaccity warning occurance
This commit is contained in:
parent
0ac8afa75c
commit
921e98b8ba
@ -925,7 +925,7 @@ std::string create_fill_warning(const NSVGshape &shape) {
|
|||||||
return {}; // not visible
|
return {}; // not visible
|
||||||
|
|
||||||
std::string warning;
|
std::string warning;
|
||||||
if ((shape.opacity - 1.f) <= warning_preccission)
|
if ((shape.opacity - 1.f + warning_preccission) <= 0.f)
|
||||||
add_comma_separated(warning, GUI::format(_L("Opacity (%1%)"), shape.opacity));
|
add_comma_separated(warning, GUI::format(_L("Opacity (%1%)"), shape.opacity));
|
||||||
|
|
||||||
// if(shape->flags != NSVG_FLAGS_VISIBLE) add_warning(_u8L("Visibility flag"));
|
// if(shape->flags != NSVG_FLAGS_VISIBLE) add_warning(_u8L("Visibility flag"));
|
||||||
@ -962,7 +962,7 @@ std::string create_stroke_warning(const NSVGshape &shape) {
|
|||||||
shape.strokeWidth <= 1e-5f)
|
shape.strokeWidth <= 1e-5f)
|
||||||
return {}; // not visible
|
return {}; // not visible
|
||||||
|
|
||||||
if ((shape.opacity - 1.f) <= warning_preccission)
|
if ((shape.opacity - 1.f + warning_preccission) <= 0.f)
|
||||||
add_comma_separated(warning, GUI::format(_L("Opacity (%1%)"), shape.opacity));
|
add_comma_separated(warning, GUI::format(_L("Opacity (%1%)"), shape.opacity));
|
||||||
|
|
||||||
bool is_stroke_gradient = shape.strokeGradient[0] != '\0';
|
bool is_stroke_gradient = shape.strokeGradient[0] != '\0';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user