some more corrections to incorrect rna get/set types.
authorCampbell Barton <ideasman42@gmail.com>
Tue, 22 Mar 2011 13:30:20 +0000 (13:30 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 22 Mar 2011 13:30:20 +0000 (13:30 +0000)
source/blender/editors/mesh/editmesh_tools.c
source/blender/editors/object/object_add.c
source/blender/editors/object/object_relations.c
source/blender/windowmanager/intern/wm_operators.c

index 68a76f5..0dc4314 100644 (file)
@@ -744,7 +744,7 @@ static int mesh_extrude_exec(bContext *C, wmOperator *op)
        Object *obedit= CTX_data_edit_object(C);
        EditMesh *em= BKE_mesh_get_editmesh(obedit->data);
 
-       extrude_mesh(obedit, em, op, RNA_int_get(op->ptr, "type"));
+       extrude_mesh(obedit, em, op, RNA_enum_get(op->ptr, "type"));
 
        DAG_id_tag_update(obedit->data, 0);
        WM_event_add_notifier(C, NC_GEOM|ND_DATA, obedit->data);
index c3fb3ca..2463e17 100644 (file)
@@ -417,7 +417,7 @@ static Object *effector_add_type(bContext *C, wmOperator *op, int type)
 /* for object add operator */
 static int effector_add_exec(bContext *C, wmOperator *op)
 {
-       if(effector_add_type(C, op, RNA_int_get(op->ptr, "type")) == NULL)
+       if(effector_add_type(C, op, RNA_enum_get(op->ptr, "type")) == NULL)
                return OPERATOR_CANCELLED;
 
        return OPERATOR_FINISHED;
index 8d378d2..7938096 100644 (file)
@@ -1254,7 +1254,7 @@ static int allow_make_links_data(int ev, Object *ob, Object *obt)
 static int make_links_data_exec(bContext *C, wmOperator *op)
 {
        Main *bmain= CTX_data_main(C);
-       int event = RNA_int_get(op->ptr, "type");
+       int event = RNA_enum_get(op->ptr, "type");
        Object *ob;
        ID *id;
        int a;
index 8aa89f6..1622159 100644 (file)
@@ -2945,7 +2945,7 @@ static int redraw_timer_exec(bContext *C, wmOperator *op)
 {
        ARegion *ar= CTX_wm_region(C);
        double stime= PIL_check_seconds_timer();
-       int type = RNA_int_get(op->ptr, "type");
+       int type = RNA_enum_get(op->ptr, "type");
        int iter = RNA_int_get(op->ptr, "iterations");
        int a;
        float time;