[Bf-blender-cvs] [a6ab232f8aa] master: LineArt: Added back the missing "allow_clipping_boundaries" option.
YimingWu
noreply at git.blender.org
Fri Mar 19 18:57:13 CET 2021
Commit: a6ab232f8aadb26c92bb0a45d57b2ff3baadf759
Author: YimingWu
Date: Fri Mar 19 18:48:05 2021 +0800
Branches: master
https://developer.blender.org/rBa6ab232f8aadb26c92bb0a45d57b2ff3baadf759
LineArt: Added back the missing "allow_clipping_boundaries" option.
This option was missing from the UI.
Also add missing camera settings depsgraph relation.
===================================================================
M source/blender/gpencil_modifiers/intern/MOD_gpencillineart.c
M source/blender/makesrna/intern/rna_gpencil_modifier.c
===================================================================
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);
More information about the Bf-blender-cvs
mailing list