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:
authorTon Roosendaal <ton@blender.org>2008-12-21 14:05:43 +0300
committerTon Roosendaal <ton@blender.org>2008-12-21 14:05:43 +0300
commit841f376a1c2b5dfef22e02696d5ad2ba053ecfbe (patch)
tree9983016e996284a49351f4608721e09f8d367734 /source/blender/windowmanager
parentf44d8c2780c08fb96461daf831789c59242fcaa2 (diff)
2.5
- View3D: added ALT+B clipping operator. Note this needs a call to the new function view3d_operator_needs_opengl(C) to ensure you can use opengl functions. Event handling by default doesn't set opengl per subwindow, it's also forbidden to draw then! We might consider to tag operators that need opengl... - Forgot to include creator.c fix for loading builtin vector font
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r--source/blender/windowmanager/intern/wm_operators.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/windowmanager/intern/wm_operators.c b/source/blender/windowmanager/intern/wm_operators.c
index 11f6f8fa93a..3158ea0759c 100644
--- a/source/blender/windowmanager/intern/wm_operators.c
+++ b/source/blender/windowmanager/intern/wm_operators.c
@@ -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);
}