Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-03-26 12:36:45 +0300
committerCampbell Barton <ideasman42@gmail.com>2011-03-26 12:36:45 +0300
commitf141c81b5b0ad58e59f4a311dd1ff7844fb8fa4c (patch)
treeeb29642f611569b86417382ae282e448bed2dea9 /source/blender/editors/curve
parentac2d935a32db96925beb86350b99212260e798f5 (diff)
- fix for editfont using an enum func on boolean property.
- updated FBX export test hash.
Diffstat (limited to 'source/blender/editors/curve')
-rw-r--r--source/blender/editors/curve/editfont.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/source/blender/editors/curve/editfont.c b/source/blender/editors/curve/editfont.c
index 34fe2d68cc7..88842f36efd 100644
--- a/source/blender/editors/curve/editfont.c
+++ b/source/blender/editors/curve/editfont.c
@@ -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);
}