Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_view3d/view3d_edit.c
| Show First 20 Lines • Show All 2,915 Lines • ▼ Show 20 Lines | if (center) { | ||||
| /* in 2.4x this also move the cursor to (0, 0, 0) (with shift+c). */ | /* in 2.4x this also move the cursor to (0, 0, 0) (with shift+c). */ | ||||
| View3DCursor *cursor = &scene->cursor; | View3DCursor *cursor = &scene->cursor; | ||||
| zero_v3(min); | zero_v3(min); | ||||
| zero_v3(max); | zero_v3(max); | ||||
| zero_v3(cursor->location); | zero_v3(cursor->location); | ||||
| float mat3[3][3]; | float mat3[3][3]; | ||||
| unit_m3(mat3); | unit_m3(mat3); | ||||
| BKE_scene_cursor_mat3_to_rot(cursor, mat3, false); | BKE_scene_cursor_mat3_to_rot(cursor, mat3, false); | ||||
| /* Make sure the entire region redraws for the 3D cursor update. */ | |||||
| WM_main_add_notifier(NC_SCENE | NA_EDITED, scene); | |||||
| } | } | ||||
| else { | else { | ||||
| INIT_MINMAX(min, max); | INIT_MINMAX(min, max); | ||||
| } | } | ||||
| for (base_eval = view_layer_eval->object_bases.first; base_eval; base_eval = base_eval->next) { | for (base_eval = view_layer_eval->object_bases.first; base_eval; base_eval = base_eval->next) { | ||||
| if (BASE_VISIBLE(v3d, base_eval)) { | if (BASE_VISIBLE(v3d, base_eval)) { | ||||
| bool only_center = false; | bool only_center = false; | ||||
| ▲ Show 20 Lines • Show All 2,433 Lines • Show Last 20 Lines | |||||