GPencil: Hide layer if the scale is zero

When scale a layer to zero must be hidden.
This commit is contained in:
Antonio Vazquez 2021-01-16 19:36:00 +01:00
parent 24cdffde55
commit 4e8c78245d
1 changed files with 5 additions and 0 deletions

View File

@ -2575,6 +2575,11 @@ void BKE_gpencil_visible_stroke_iter(ViewLayer *view_layer,
continue;
}
/* If scale to 0 the layer must be invisible. */
if (is_zero_v3(gpl->scale)) {
continue;
}
/* Hide the layer if it's defined a view layer filter. This is used to
* generate renders, putting only selected GP layers for each View Layer.
* This is used only in final render and never in Viewport. */