mirror of
https://github.com/storytold/designcraft.git
synced 2026-11-14 14:22:39 +00:00
Render: plain satin with no distance on an image is not drawn
Both shifted copies are the same at distance 0, so the coverage mask is empty. The effect is now skipped before the image is drawn offscreen and scanned.
This commit is contained in:
1 parent
c3a7deb21a
commit
7af4d75539
1 file changed
+3
-1
@@ -329,8 +329,10 @@ impl Renderer {
|
||||
}
|
||||
}
|
||||
// Satin: the shape shifted both ways along the angle, blurred, where exactly one covers.
|
||||
// With a graphic, the shape is what the object paints, as for the inner shadow.
|
||||
// With a graphic, the shape is what the object paints, as for the inner shadow. Plain
|
||||
// satin on a graphic with no distance compares two equal copies and is not drawn.
|
||||
if e.satin.on
|
||||
&& !(painted.is_some() && !e.satin.invert && e.satin.distance == 0.0)
|
||||
&& let Some(c) = doc.resolve_color(&e.satin.color, 1.0)
|
||||
{
|
||||
let st = &e.satin;
|
||||
|
||||
Reference in new issue
Block a user