Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_view3d/view3d_edit.c
| Show First 20 Lines • Show All 3,069 Lines • ▼ Show 20 Lines | |||||
| /* like a localview without local!, was centerview() in 2.4x */ | /* like a localview without local!, was centerview() in 2.4x */ | ||||
| static int viewselected_exec(bContext *C, wmOperator *op) | static int viewselected_exec(bContext *C, wmOperator *op) | ||||
| { | { | ||||
| ARegion *ar = CTX_wm_region(C); | ARegion *ar = CTX_wm_region(C); | ||||
| View3D *v3d = CTX_wm_view3d(C); | View3D *v3d = CTX_wm_view3d(C); | ||||
| Scene *scene = CTX_data_scene(C); | Scene *scene = CTX_data_scene(C); | ||||
| SceneLayer *sl = CTX_data_scene_layer(C); | SceneLayer *sl = CTX_data_scene_layer(C); | ||||
| bGPdata *gpd = CTX_data_gpencil_data(C); | bGPdata *gpd = CTX_data_gpencil_data(C); | ||||
| const bool is_gp_edit = ((gpd) && (gpd->flag & GP_DATA_STROKE_EDITMODE)); | const bool is_gp_edit = GPENCIL_ANY_MODE(gpd); | ||||
| const bool is_face_map = ((is_gp_edit == false) && ar->manipulator_map && | const bool is_face_map = ((is_gp_edit == false) && ar->manipulator_map && | ||||
| WM_manipulatormap_is_any_selected(ar->manipulator_map)); | WM_manipulatormap_is_any_selected(ar->manipulator_map)); | ||||
| Object *ob = OBACT_NEW(sl); | Object *ob = OBACT_NEW(sl); | ||||
| Object *obedit = CTX_data_edit_object(C); | Object *obedit = CTX_data_edit_object(C); | ||||
| float min[3], max[3]; | float min[3], max[3]; | ||||
| bool ok = false, ok_dist = true; | bool ok = false, ok_dist = true; | ||||
| const bool use_all_regions = RNA_boolean_get(op->ptr, "use_all_regions"); | const bool use_all_regions = RNA_boolean_get(op->ptr, "use_all_regions"); | ||||
| const bool skip_camera = (ED_view3d_camera_lock_check(v3d, ar->regiondata) || | const bool skip_camera = (ED_view3d_camera_lock_check(v3d, ar->regiondata) || | ||||
| ▲ Show 20 Lines • Show All 2,146 Lines • Show Last 20 Lines | |||||