correct rna identifiers

- compositor viewer: use_straight_alpha -> use_alpha
- bevel tool: percent -> offset
This commit is contained in:
Campbell Barton
2013-02-13 04:04:14 +00:00
parent b6a60fc6b8
commit 0b8bfbebc8
2 changed files with 2 additions and 2 deletions

View File

@@ -4977,7 +4977,7 @@ static float edbm_bevel_mval_factor(wmOperator *op, wmEvent *event)
if (event->shift) {
if (opdata->shift_factor < 0.0f) {
#ifdef NEW_BEVEL
opdata->shift_factor = RNA_float_get(op->ptr, "percent");
opdata->shift_factor = RNA_float_get(op->ptr, "offset");
#else
opdata->shift_factor = RNA_float_get(op->ptr, "factor");
#endif

View File

@@ -2668,7 +2668,7 @@ static void node_composit_buts_viewer_but(uiLayout *layout, bContext *UNUSED(C),
{
uiLayout *col;
uiItemR(layout, ptr, "use_straight_alpha", 0, NULL, ICON_NONE);
uiItemR(layout, ptr, "use_alpha", 0, NULL, ICON_NONE);
uiItemR(layout, ptr, "tile_order", 0, NULL, ICON_NONE);
if (RNA_enum_get(ptr, "tile_order") == 0) {
col = uiLayoutColumn(layout, TRUE);