2.5
[blender.git] / source / blender / windowmanager / intern / wm_operators.c
index 11f6f8fa93ab9ce2ca2af179ea88af8e76ddf03e..3158ea0759cb89e792027c9002cf78097cb54ab1 100644 (file)
@@ -264,8 +264,8 @@ static void border_select_apply(bContext *C, wmOperator *op, int event_type)
        RNA_int_set(op->ptr, "ymin", rect->ymin);
        RNA_int_set(op->ptr, "xmax", rect->xmax);
        RNA_int_set(op->ptr, "ymax", rect->ymax);
-       
-       RNA_int_set(op->ptr, "event_type", event_type);
+       if( RNA_property_is_set(op->ptr, "event_type"))
+               RNA_int_set(op->ptr, "event_type", event_type);
        
        op->type->exec(C, op);
 }