Page MenuHome

Fix: GPencil mask shows in view layer render
ClosedPublic

Authored by Falk David (filedescriptor) on May 26 2021, 4:07 PM.

Details

Summary

Currently when rendering the view layer of a grease pencil layer that has
a mask layer attached, the mask layer would show in the rendered image.
This is inconsistent with the default behaviour with no mask on the
grease pencil layer, because it would only render what's on that
particular layer and not anything from any other layer.

This patch makes the masks invisible in the render.

Note: This might seem like not the best solution, but because masks are
just regular grease pencil layers, it's tricky to pass this edge-case to the
drawing code. The way it is handled right now is the best I could come
up with, without making changes that could affect something else.

Diff Detail

Repository
rB Blender
Branch
T88202_2 (branched from master)
Build Status
Buildable 14782
Build 14782: arc lint + arc unit

Event Timeline

Falk David (filedescriptor) requested review of this revision.May 26 2021, 4:07 PM
Falk David (filedescriptor) created this revision.
This revision is now accepted and ready to land.May 26 2021, 4:16 PM