diff options
author | YimingWu <xp8110@outlook.com> | 2022-01-17 12:20:47 +0300 |
---|---|---|
committer | YimingWu <xp8110@outlook.com> | 2022-01-17 12:22:09 +0300 |
commit | 40c8e23d481cbee683ea890a6bf49129e7fcf5df (patch) | |
tree | 1935ed569bb14592375f6de8e6524f7468ebc0a2 /source/blender/gpencil_modifiers/intern/MOD_gpencillineart.c | |
parent | e1e3043a51a6f88b3a79b935678464a06c2e469f (diff) |
LineArt: Invert collection option.
Allows conveniently selecting an inverse of a collection.
Reviewed By: Antonio Vazquez (antoniov)
Differential Revision: https://developer.blender.org/D13846
Diffstat (limited to 'source/blender/gpencil_modifiers/intern/MOD_gpencillineart.c')
-rw-r--r-- | source/blender/gpencil_modifiers/intern/MOD_gpencillineart.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/gpencil_modifiers/intern/MOD_gpencillineart.c b/source/blender/gpencil_modifiers/intern/MOD_gpencillineart.c index b35ebd4be9a..59937bb0757 100644 --- a/source/blender/gpencil_modifiers/intern/MOD_gpencillineart.c +++ b/source/blender/gpencil_modifiers/intern/MOD_gpencillineart.c @@ -314,7 +314,9 @@ static void panel_draw(const bContext *UNUSED(C), Panel *panel) uiItemR(layout, ptr, "source_object", 0, NULL, ICON_OBJECT_DATA); } else if (source_type == LRT_SOURCE_COLLECTION) { - uiItemR(layout, ptr, "source_collection", 0, NULL, ICON_OUTLINER_COLLECTION); + uiLayout *sub = uiLayoutRow(layout, true); + uiItemR(sub, ptr, "source_collection", 0, NULL, ICON_OUTLINER_COLLECTION); + uiItemR(sub, ptr, "use_invert_collection", 0, "", ICON_ARROW_LEFTRIGHT); } else { /* Source is Scene. */ |