Changeset View
Changeset View
Standalone View
Standalone View
source/blender/windowmanager/intern/wm_gesture_ops.c
| Show First 20 Lines • Show All 754 Lines • ▼ Show 20 Lines | |||||
| /* template to copy from */ | /* template to copy from */ | ||||
| static int gesture_lasso_exec(bContext *C, wmOperator *op) | static int gesture_lasso_exec(bContext *C, wmOperator *op) | ||||
| { | { | ||||
| RNA_BEGIN (op->ptr, itemptr, "path") { | RNA_BEGIN (op->ptr, itemptr, "path") { | ||||
| float loc[2]; | float loc[2]; | ||||
| RNA_float_get_array(&itemptr, "loc", loc); | RNA_float_get_array(&itemptr, "loc", loc); | ||||
| printf("Location: %f %f\n", loc[0], loc[1]); | CLOG_INFO(WM_LOG_OPERATORS, "Location: %f %f", loc[0], loc[1]); | ||||
| } | } | ||||
| RNA_END; | RNA_END; | ||||
| return OPERATOR_FINISHED; | return OPERATOR_FINISHED; | ||||
| } | } | ||||
| void WM_OT_lasso_gesture(wmOperatorType *ot) | void WM_OT_lasso_gesture(wmOperatorType *ot) | ||||
| { | { | ||||
| ▲ Show 20 Lines • Show All 141 Lines • Show Last 20 Lines | |||||