LineArt: Added back the missing "allow_clipping_boundaries" option.

This option was missing from the UI.
Also add missing camera settings depsgraph relation.
This commit is contained in:
YimingWu
2021-03-19 18:48:05 +08:00
committed by Sebastian Parborg
parent cff4445a86
commit a6ab232f8a
2 changed files with 6 additions and 2 deletions

View File

@@ -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);
}

View File

@@ -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);