Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_view3d/view3d_edit.c
| Show First 20 Lines • Show All 2,991 Lines • ▼ Show 20 Lines | FOREACH_OBJECT_IN_MODE_BEGIN ( | ||||
| ok |= BKE_pose_minmax(ob_eval_iter, min, max, true, true); | ok |= BKE_pose_minmax(ob_eval_iter, min, max, true, true); | ||||
| } | } | ||||
| FOREACH_OBJECT_IN_MODE_END; | FOREACH_OBJECT_IN_MODE_END; | ||||
| } | } | ||||
| else if (BKE_paint_select_face_test(ob_eval)) { | else if (BKE_paint_select_face_test(ob_eval)) { | ||||
| ok = paintface_minmax(ob_eval, min, max); | ok = paintface_minmax(ob_eval, min, max); | ||||
| } | } | ||||
| else if (ob_eval && (ob_eval->mode & OB_MODE_PARTICLE_EDIT)) { | else if (ob_eval && (ob_eval->mode & OB_MODE_PARTICLE_EDIT)) { | ||||
| ok = PE_minmax(scene, CTX_data_view_layer(C), min, max); | ok = PE_minmax(depsgraph, scene, CTX_data_view_layer(C), min, max); | ||||
| } | } | ||||
| else if (ob_eval && (ob_eval->mode & (OB_MODE_SCULPT | OB_MODE_VERTEX_PAINT | | else if (ob_eval && (ob_eval->mode & (OB_MODE_SCULPT | OB_MODE_VERTEX_PAINT | | ||||
| OB_MODE_WEIGHT_PAINT | OB_MODE_TEXTURE_PAINT))) { | OB_MODE_WEIGHT_PAINT | OB_MODE_TEXTURE_PAINT))) { | ||||
| BKE_paint_stroke_get_average(scene, ob_eval, min); | BKE_paint_stroke_get_average(scene, ob_eval, min); | ||||
| copy_v3_v3(max, min); | copy_v3_v3(max, min); | ||||
| ok = true; | ok = true; | ||||
| ok_dist = 0; /* don't zoom */ | ok_dist = 0; /* don't zoom */ | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 2,231 Lines • Show Last 20 Lines | |||||