Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_image/image_ops.c
| Show First 20 Lines • Show All 894 Lines • ▼ Show 20 Lines | Object **objects = BKE_view_layer_array_from_objects_in_edit_mode_unique_data_with_uvs( | ||||
| view_layer, ((View3D *)NULL), &objects_len); | view_layer, ((View3D *)NULL), &objects_len); | ||||
| bool success = ED_uvedit_minmax_multi(scene, objects, objects_len, min, max); | bool success = ED_uvedit_minmax_multi(scene, objects, objects_len, min, max); | ||||
| MEM_freeN(objects); | MEM_freeN(objects); | ||||
| if (!success) { | if (!success) { | ||||
| return OPERATOR_CANCELLED; | return OPERATOR_CANCELLED; | ||||
| } | } | ||||
| } | } | ||||
| else if (ED_space_image_check_show_maskedit(sima, obedit)) { | else if (ED_space_image_check_show_maskedit(sima, obedit)) { | ||||
| if (!ED_mask_selected_minmax(C, min, max)) { | if (!ED_mask_selected_minmax(C, min, max, true)) { | ||||
| return OPERATOR_CANCELLED; | return OPERATOR_CANCELLED; | ||||
| } | } | ||||
| } | } | ||||
| rctf bounds = { | rctf bounds = { | ||||
| .xmin = min[0], | .xmin = min[0], | ||||
| .ymin = min[1], | .ymin = min[1], | ||||
| .xmax = max[0], | .xmax = max[0], | ||||
| .ymax = max[1], | .ymax = max[1], | ||||
| ▲ Show 20 Lines • Show All 3,064 Lines • Show Last 20 Lines | |||||