Fix UI (and code!) typos.
This commit is contained in:
parent
14caab7257
commit
82d3b0f927
|
@ -428,7 +428,7 @@ static void baking_panel_draw(const bContext *UNUSED(C), Panel *panel)
|
|||
if (is_baked) {
|
||||
uiLayout *col = uiLayoutColumn(layout, false);
|
||||
uiLayoutSetPropSep(col, false);
|
||||
uiItemL(col, IFACE_("Modifier has baked data."), ICON_NONE);
|
||||
uiItemL(col, IFACE_("Modifier has baked data"), ICON_NONE);
|
||||
uiItemR(
|
||||
col, ptr, "is_baked", UI_ITEM_R_TOGGLE, IFACE_("Continue Without Clearing"), ICON_NONE);
|
||||
}
|
||||
|
|
|
@ -1711,7 +1711,7 @@ static void lineart_geometry_object_load(Depsgraph *dg,
|
|||
LineartLineSegment *rls = lineart_mem_aquire(&rb->render_data_pool,
|
||||
sizeof(LineartLineSegment));
|
||||
BLI_addtail(&la_e->segments, rls);
|
||||
if (usage == OBJECT_LRT_INHERENT || usage == OBJECT_LRT_INCLUDE ||
|
||||
if (usage == OBJECT_LRT_INHERIT || usage == OBJECT_LRT_INCLUDE ||
|
||||
usage == OBJECT_LRT_NO_INTERSECTION) {
|
||||
lineart_add_edge_to_list(rb, la_e);
|
||||
}
|
||||
|
@ -1750,10 +1750,10 @@ static int lineart_usage_check(Collection *c, Object *ob, LineartRenderBuffer *_
|
|||
{
|
||||
|
||||
if (!c) {
|
||||
return OBJECT_LRT_INHERENT;
|
||||
return OBJECT_LRT_INHERIT;
|
||||
}
|
||||
|
||||
int object_has_special_usage = (ob->lineart.usage != OBJECT_LRT_INHERENT);
|
||||
int object_has_special_usage = (ob->lineart.usage != OBJECT_LRT_INHERIT);
|
||||
|
||||
if (object_has_special_usage) {
|
||||
return ob->lineart.usage;
|
||||
|
@ -1761,7 +1761,7 @@ static int lineart_usage_check(Collection *c, Object *ob, LineartRenderBuffer *_
|
|||
|
||||
if (c->children.first == NULL) {
|
||||
if (BKE_collection_has_object(c, (Object *)(ob->id.orig_id))) {
|
||||
if (ob->lineart.usage == OBJECT_LRT_INHERENT) {
|
||||
if (ob->lineart.usage == OBJECT_LRT_INHERIT) {
|
||||
switch (c->lineart_usage) {
|
||||
case COLLECTION_LRT_OCCLUSION_ONLY:
|
||||
return OBJECT_LRT_OCCLUSION_ONLY;
|
||||
|
@ -1772,16 +1772,16 @@ static int lineart_usage_check(Collection *c, Object *ob, LineartRenderBuffer *_
|
|||
case COLLECTION_LRT_NO_INTERSECTION:
|
||||
return OBJECT_LRT_NO_INTERSECTION;
|
||||
}
|
||||
return OBJECT_LRT_INHERENT;
|
||||
return OBJECT_LRT_INHERIT;
|
||||
}
|
||||
return ob->lineart.usage;
|
||||
}
|
||||
return OBJECT_LRT_INHERENT;
|
||||
return OBJECT_LRT_INHERIT;
|
||||
}
|
||||
|
||||
LISTBASE_FOREACH (CollectionChild *, cc, &c->children) {
|
||||
int result = lineart_usage_check(cc->collection, ob, _rb);
|
||||
if (result > OBJECT_LRT_INHERENT) {
|
||||
if (result > OBJECT_LRT_INHERIT) {
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
@ -1799,7 +1799,7 @@ static int lineart_usage_check(Collection *c, Object *ob, LineartRenderBuffer *_
|
|||
}
|
||||
}
|
||||
|
||||
return OBJECT_LRT_INHERENT;
|
||||
return OBJECT_LRT_INHERIT;
|
||||
}
|
||||
|
||||
static void lineart_main_load_geometries(
|
||||
|
|
|
@ -407,7 +407,7 @@ static int lineart_gpencil_clear_strokes_all_exec(bContext *C, wmOperator *op)
|
|||
}
|
||||
CTX_DATA_END;
|
||||
|
||||
BKE_report(op->reports, RPT_INFO, "All line art objects are now cleared.");
|
||||
BKE_report(op->reports, RPT_INFO, "All line art objects are now cleared");
|
||||
|
||||
return OPERATOR_FINISHED;
|
||||
}
|
||||
|
@ -440,7 +440,7 @@ void OBJECT_OT_lineart_bake_strokes_all(wmOperatorType *ot)
|
|||
void OBJECT_OT_lineart_clear(wmOperatorType *ot)
|
||||
{
|
||||
ot->name = "Clear Baked Line Art";
|
||||
ot->description = "Clear all strokes in current GPencil obejct";
|
||||
ot->description = "Clear all strokes in current GPencil object";
|
||||
ot->idname = "OBJECT_OT_lineart_clear";
|
||||
|
||||
ot->exec = lineart_gpencil_clear_strokes_exec;
|
||||
|
|
|
@ -214,7 +214,7 @@ typedef struct ObjectLineArt {
|
|||
} ObjectLineArt;
|
||||
|
||||
enum ObjectFeatureLine_Usage {
|
||||
OBJECT_LRT_INHERENT = 0,
|
||||
OBJECT_LRT_INHERIT = 0,
|
||||
OBJECT_LRT_INCLUDE = (1 << 0),
|
||||
OBJECT_LRT_OCCLUSION_ONLY = (1 << 1),
|
||||
OBJECT_LRT_EXCLUDE = (1 << 2),
|
||||
|
|
|
@ -2673,7 +2673,7 @@ static void rna_def_object_lineart(BlenderRNA *brna)
|
|||
PropertyRNA *prop;
|
||||
|
||||
static EnumPropertyItem prop_feature_line_usage_items[] = {
|
||||
{OBJECT_LRT_INHERENT, "INHEREIT", 0, "Inhereit", "Use settings from the parent collection"},
|
||||
{OBJECT_LRT_INHERIT, "INHERIT", 0, "Inherit", "Use settings from the parent collection"},
|
||||
{OBJECT_LRT_INCLUDE,
|
||||
"INCLUDE",
|
||||
0,
|
||||
|
|
Loading…
Reference in New Issue