- fix for editfont using an enum func on boolean property.

- updated FBX export test hash.
This commit is contained in:
2011-03-26 09:36:45 +00:00
parent ac2d935a32
commit f141c81b5b
2 changed files with 4 additions and 6 deletions

View File

@@ -616,7 +616,7 @@ static EnumPropertyItem style_items[]= {
{CU_CHINFO_SMALLCAPS, "SMALL_CAPS", 0, "Small Caps", ""},
{0, NULL, 0, NULL, NULL}};
static int set_style(bContext *C, int style, int clear)
static int set_style(bContext *C, const int style, const int clear)
{
Object *obedit= CTX_data_edit_object(C);
Curve *cu= obedit->data;
@@ -641,10 +641,8 @@ static int set_style(bContext *C, int style, int clear)
static int set_style_exec(bContext *C, wmOperator *op)
{
int style, clear;
style= RNA_enum_get(op->ptr, "style");
clear= RNA_enum_get(op->ptr, "clear");
const int style= RNA_enum_get(op->ptr, "style");
const int clear= RNA_boolean_get(op->ptr, "clear");
return set_style(C, style, clear);
}