Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/mesh/editmesh_extrude.c
| Show First 20 Lines • Show All 696 Lines • ▼ Show 20 Lines | static int edbm_dupli_extrude_cursor_invoke(bContext *C, wmOperator *op, const wmEvent *event) | ||||
| float center[3]; | float center[3]; | ||||
| uint verts_len; | uint verts_len; | ||||
| em_setup_viewcontext(C, &vc); | em_setup_viewcontext(C, &vc); | ||||
| const Object *object_active = vc.obact; | const Object *object_active = vc.obact; | ||||
| const bool rot_src = RNA_boolean_get(op->ptr, "rotate_source"); | const bool rot_src = RNA_boolean_get(op->ptr, "rotate_source"); | ||||
| const bool use_proj = ((vc.scene->toolsettings->snap_flag & SCE_SNAP) && | const bool use_proj = ((vc.scene->toolsettings->snap_flag & SCE_SNAP) && | ||||
| (vc.scene->toolsettings->snap_mode == SCE_SNAP_MODE_FACE)); | (vc.scene->toolsettings->snap_mode == SCE_SNAP_MODE_FACE_RAYCAST)); | ||||
| /* First calculate the center of transformation. */ | /* First calculate the center of transformation. */ | ||||
| zero_v3(center); | zero_v3(center); | ||||
| verts_len = 0; | verts_len = 0; | ||||
| uint objects_len = 0; | uint objects_len = 0; | ||||
| Object **objects = BKE_view_layer_array_from_objects_in_edit_mode_unique_data( | Object **objects = BKE_view_layer_array_from_objects_in_edit_mode_unique_data( | ||||
| vc.view_layer, vc.v3d, &objects_len); | vc.view_layer, vc.v3d, &objects_len); | ||||
| ▲ Show 20 Lines • Show All 217 Lines • Show Last 20 Lines | |||||