From a6ab232f8aadb26c92bb0a45d57b2ff3baadf759 Mon Sep 17 00:00:00 2001 From: YimingWu Date: Fri, 19 Mar 2021 18:48:05 +0800 Subject: LineArt: Added back the missing "allow_clipping_boundaries" option. This option was missing from the UI. Also add missing camera settings depsgraph relation. --- source/blender/gpencil_modifiers/intern/MOD_gpencillineart.c | 3 +++ source/blender/makesrna/intern/rna_gpencil_modifier.c | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/source/blender/gpencil_modifiers/intern/MOD_gpencillineart.c b/source/blender/gpencil_modifiers/intern/MOD_gpencillineart.c index 27c1c40066e..a7cd8ffb31b 100644 --- a/source/blender/gpencil_modifiers/intern/MOD_gpencillineart.c +++ b/source/blender/gpencil_modifiers/intern/MOD_gpencillineart.c @@ -225,6 +225,8 @@ static void updateDepsgraph(GpencilModifierData *md, } DEG_add_object_relation( ctx->node, ctx->scene->camera, DEG_OB_COMP_TRANSFORM, "Line Art Modifier"); + DEG_add_object_relation( + ctx->node, ctx->scene->camera, DEG_OB_COMP_PARAMETERS, "Line Art Modifier"); } static void foreachIDLink(GpencilModifierData *md, Object *ob, IDWalkFunc walk, void *userData) @@ -289,6 +291,7 @@ static void panel_draw(const bContext *UNUSED(C), Panel *panel) IFACE_("Overlapping Edges As Contour"), ICON_NONE); uiItemR(layout, ptr, "allow_duplication", 0, NULL, ICON_NONE); + uiItemR(layout, ptr, "allow_clipping_boundaries", 0, NULL, ICON_NONE); gpencil_modifier_panel_end(layout, ptr); } diff --git a/source/blender/makesrna/intern/rna_gpencil_modifier.c b/source/blender/makesrna/intern/rna_gpencil_modifier.c index 7e6d83cdbdd..c0b082684e6 100644 --- a/source/blender/makesrna/intern/rna_gpencil_modifier.c +++ b/source/blender/makesrna/intern/rna_gpencil_modifier.c @@ -2363,8 +2363,9 @@ static void rna_def_modifier_gpencillineart(BlenderRNA *brna) prop = RNA_def_property(srna, "allow_clipping_boundaries", PROP_BOOLEAN, PROP_NONE); RNA_def_property_boolean_sdna(prop, NULL, "calculation_flags", LRT_ALLOW_CLIPPING_BOUNDARIES); - RNA_def_property_ui_text( - prop, "Clipping Boundaries", "Allow lines on near/far clipping plane to be shown"); + RNA_def_property_ui_text(prop, + "Clipping Boundaries", + "Allow lines generated by the near/far clipping plane to be shown"); RNA_def_property_update(prop, NC_SCENE, "rna_GpencilModifier_update"); prop = RNA_def_property(srna, "crease_threshold", PROP_FLOAT, PROP_ANGLE); -- cgit v1.2.3