Blender Git Loki

Git Commits -> Revision d5a5575

Revision d5a5575 by Falk David (master)
May 26, 2021, 14:32 (GMT)
Fix: GPencil mask shows in view layer render

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.

Reviewed By: antoniov

Maniphest Tasks: T88202

Differential Revision: https://developer.blender.org/D11403

Commit Details:

Full Hash: d5a5575685b650d297b40ace925042ce1525ecae
Parent Commit: ba5b4d1
Lines Changed: +12, -3

1 Modified Path:

/source/blender/blenkernel/intern/gpencil.c (+12, -3) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021