Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/object/object_modifier.c
| Show First 20 Lines • Show All 1,744 Lines • ▼ Show 20 Lines | static int modifier_copy_to_selected_exec(bContext *C, wmOperator *op) | ||||
| return OPERATOR_FINISHED; | return OPERATOR_FINISHED; | ||||
| } | } | ||||
| static int modifier_copy_to_selected_invoke(bContext *C, wmOperator *op, const wmEvent *event) | static int modifier_copy_to_selected_invoke(bContext *C, wmOperator *op, const wmEvent *event) | ||||
| { | { | ||||
| int retval; | int retval; | ||||
| if (edit_modifier_invoke_properties_with_hover_no_active(C, op, event, &retval)) { | if (edit_modifier_invoke_properties_with_hover_no_active(C, op, event, &retval)) { | ||||
| return modifier_set_active_exec(C, op); | return modifier_copy_to_selected_exec(C, op); | ||||
| } | } | ||||
| return retval; | return retval; | ||||
| } | } | ||||
| static bool modifier_copy_to_selected_poll(bContext *C) | static bool modifier_copy_to_selected_poll(bContext *C) | ||||
| { | { | ||||
| PointerRNA ptr = CTX_data_pointer_get_type(C, "modifier", &RNA_Modifier); | PointerRNA ptr = CTX_data_pointer_get_type(C, "modifier", &RNA_Modifier); | ||||
| Object *obact = (ptr.owner_id) ? (Object *)ptr.owner_id : ED_object_active_context(C); | Object *obact = (ptr.owner_id) ? (Object *)ptr.owner_id : ED_object_active_context(C); | ||||
| ▲ Show 20 Lines • Show All 1,473 Lines • Show Last 20 Lines | |||||