Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYimingWu <xp8110@outlook.com>2021-03-19 13:48:05 +0300
committerSebastian Parborg <darkdefende@gmail.com>2021-03-19 20:56:26 +0300
commita6ab232f8aadb26c92bb0a45d57b2ff3baadf759 (patch)
tree1b0350b984a4817ac293a410011698aa7c8ca963
parentcff4445a86b003f386bcf17e7098b477edab2dc6 (diff)
LineArt: Added back the missing "allow_clipping_boundaries" option.
This option was missing from the UI. Also add missing camera settings depsgraph relation.
-rw-r--r--source/blender/gpencil_modifiers/intern/MOD_gpencillineart.c3
-rw-r--r--source/blender/makesrna/intern/rna_gpencil_modifier.c5
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);