Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_outliner/outliner_edit.c
| Show First 20 Lines • Show All 636 Lines • ▼ Show 20 Lines | static int outliner_id_remap_invoke(bContext *C, wmOperator *op, const wmEvent *event) | ||||
| float fmval[2]; | float fmval[2]; | ||||
| if (!RNA_property_is_set(op->ptr, RNA_struct_find_property(op->ptr, "id_type"))) { | if (!RNA_property_is_set(op->ptr, RNA_struct_find_property(op->ptr, "id_type"))) { | ||||
| UI_view2d_region_to_view(&ar->v2d, event->mval[0], event->mval[1], &fmval[0], &fmval[1]); | UI_view2d_region_to_view(&ar->v2d, event->mval[0], event->mval[1], &fmval[0], &fmval[1]); | ||||
| outliner_id_remap_find_tree_element(C, op, &soops->tree, fmval[1]); | outliner_id_remap_find_tree_element(C, op, &soops->tree, fmval[1]); | ||||
| } | } | ||||
| return WM_operator_props_dialog_popup(C, op, 200, 100); | return WM_operator_props_dialog_popup(C, op, 200); | ||||
| } | } | ||||
| static const EnumPropertyItem *outliner_id_itemf(bContext *C, | static const EnumPropertyItem *outliner_id_itemf(bContext *C, | ||||
| PointerRNA *ptr, | PointerRNA *ptr, | ||||
| PropertyRNA *UNUSED(prop), | PropertyRNA *UNUSED(prop), | ||||
| bool *r_free) | bool *r_free) | ||||
| { | { | ||||
| EnumPropertyItem item_tmp = {0}, *item = NULL; | EnumPropertyItem item_tmp = {0}, *item = NULL; | ||||
| ▲ Show 20 Lines • Show All 1,657 Lines • Show Last 20 Lines | |||||