Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/uvedit/uvedit_rip.c
| Show First 20 Lines • Show All 956 Lines • ▼ Show 20 Lines | void UV_OT_rip(wmOperatorType *ot) | ||||
| ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; | ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; | ||||
| /* api callbacks */ | /* api callbacks */ | ||||
| ot->exec = uv_rip_exec; | ot->exec = uv_rip_exec; | ||||
| ot->invoke = uv_rip_invoke; | ot->invoke = uv_rip_invoke; | ||||
| ot->poll = ED_operator_uvedit; | ot->poll = ED_operator_uvedit; | ||||
| /* translation data */ | /* translation data */ | ||||
| Transform_Properties(ot, P_PROPORTIONAL | P_MIRROR_DUMMY); | Transform_Properties(ot, P_MIRROR_DUMMY); | ||||
| /* properties */ | /* properties */ | ||||
| RNA_def_float_vector( | RNA_def_float_vector( | ||||
| ot->srna, | ot->srna, | ||||
| "location", | "location", | ||||
| 2, | 2, | ||||
| NULL, | NULL, | ||||
| -FLT_MAX, | -FLT_MAX, | ||||
| FLT_MAX, | FLT_MAX, | ||||
| "Location", | "Location", | ||||
| "Mouse location in normalized coordinates, 0.0 to 1.0 is within the image bounds", | "Mouse location in normalized coordinates, 0.0 to 1.0 is within the image bounds", | ||||
| -100.0f, | -100.0f, | ||||
| 100.0f); | 100.0f); | ||||
| } | } | ||||
| /** \} */ | /** \} */ | ||||