Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_view3d/view3d_select.c
| Show First 20 Lines • Show All 2,807 Lines • ▼ Show 20 Lines | static int view3d_select_exec(bContext *C, wmOperator *op) | ||||
| } | } | ||||
| return OPERATOR_PASS_THROUGH; /* nothing selected, just passthrough */ | return OPERATOR_PASS_THROUGH; /* nothing selected, just passthrough */ | ||||
| } | } | ||||
| static int view3d_select_invoke(bContext *C, wmOperator *op, const wmEvent *event) | static int view3d_select_invoke(bContext *C, wmOperator *op, const wmEvent *event) | ||||
| { | { | ||||
| RNA_int_set_array(op->ptr, "location", event->mval); | RNA_int_set_array(op->ptr, "location", event->mval); | ||||
| return view3d_select_exec(C, op); | int retval = view3d_select_exec(C, op); | ||||
| /* Only finish + pass through for press events (allowing press-tweak). */ | |||||
| if ((event->val != KM_PRESS) && | |||||
| ((retval & OPERATOR_PASS_THROUGH) && (retval & OPERATOR_FINISHED))) { | |||||
| retval &= ~OPERATOR_PASS_THROUGH; | |||||
| } | |||||
| return retval; | |||||
| } | } | ||||
| void VIEW3D_OT_select(wmOperatorType *ot) | void VIEW3D_OT_select(wmOperatorType *ot) | ||||
| { | { | ||||
| PropertyRNA *prop; | PropertyRNA *prop; | ||||
| /* identifiers */ | /* identifiers */ | ||||
| ot->name = "Select"; | ot->name = "Select"; | ||||
| ▲ Show 20 Lines • Show All 1,717 Lines • Show Last 20 Lines | |||||