Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/physics/particle_edit.c
| Show First 20 Lines • Show All 1,808 Lines • ▼ Show 20 Lines | void PARTICLE_OT_select_roots(wmOperatorType *ot) | ||||
| /* api callbacks */ | /* api callbacks */ | ||||
| ot->exec = select_roots_exec; | ot->exec = select_roots_exec; | ||||
| ot->poll = PE_poll; | ot->poll = PE_poll; | ||||
| /* flags */ | /* flags */ | ||||
| ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; | ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; | ||||
| /* properties */ | /* properties */ | ||||
| WM_operator_properties_select_action(ot, SEL_SELECT); | WM_operator_properties_select_action(ot, SEL_SELECT, true); | ||||
| } | } | ||||
| /************************ select tip operator ************************/ | /************************ select tip operator ************************/ | ||||
| static void select_tip(PEData *data, int point_index) | static void select_tip(PEData *data, int point_index) | ||||
| { | { | ||||
| PTCacheEditPoint *point = data->edit->points + point_index; | PTCacheEditPoint *point = data->edit->points + point_index; | ||||
| PTCacheEditKey *key; | PTCacheEditKey *key; | ||||
| ▲ Show 20 Lines • Show All 53 Lines • ▼ Show 20 Lines | void PARTICLE_OT_select_tips(wmOperatorType *ot) | ||||
| /* api callbacks */ | /* api callbacks */ | ||||
| ot->exec = select_tips_exec; | ot->exec = select_tips_exec; | ||||
| ot->poll = PE_poll; | ot->poll = PE_poll; | ||||
| /* flags */ | /* flags */ | ||||
| ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; | ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; | ||||
| /* properties */ | /* properties */ | ||||
| WM_operator_properties_select_action(ot, SEL_SELECT); | WM_operator_properties_select_action(ot, SEL_SELECT, true); | ||||
| } | } | ||||
| /*********************** select random operator ************************/ | /*********************** select random operator ************************/ | ||||
| enum { RAN_HAIR, RAN_POINTS }; | enum { RAN_HAIR, RAN_POINTS }; | ||||
| static const EnumPropertyItem select_random_type_items[] = { | static const EnumPropertyItem select_random_type_items[] = { | ||||
| {RAN_HAIR, "HAIR", 0, "Hair", ""}, | {RAN_HAIR, "HAIR", 0, "Hair", ""}, | ||||
| ▲ Show 20 Lines • Show All 3,279 Lines • Show Last 20 Lines | |||||