Cleanup: unused variable, spelling

This commit is contained in:
Campbell Barton 2021-04-29 17:21:50 +10:00
parent 816fc5a308
commit b10649f27b
2 changed files with 1 additions and 2 deletions

View File

@ -1050,7 +1050,7 @@ void BKE_gpencil_stroke_2d_flat(const bGPDspoint *points,
normalize_v3(locx);
normalize_v3(locy);
/* Calculcate last point first. */
/* Calculate last point first. */
const bGPDspoint *pt_last = &points[totpoints - 1];
float tmp[3];
sub_v3_v3v3(tmp, &pt_last->x, &pt0->x);

View File

@ -210,7 +210,6 @@ void gpencil_modifier_fading_draw(const bContext *UNUSED(C), Panel *panel)
uiLayout *layout = panel->layout;
uiLayoutSetPropSep(layout, true);
bool fading_enabled = RNA_boolean_get(ptr, "use_fading");
uiItemR(layout, ptr, "object", 0, NULL, ICON_CUBE);
uiLayout *sub = uiLayoutColumn(layout, true);
uiItemR(sub, ptr, "fading_start", 0, NULL, ICON_NONE);