Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/transform/transform_orientations.c
| Show First 20 Lines • Show All 572 Lines • ▼ Show 20 Lines | static unsigned int bm_mesh_faces_select_get_n(BMesh *bm, BMVert **elems, const unsigned int n) | ||||
| return bm_mesh_elems_select_get_n__internal( | return bm_mesh_elems_select_get_n__internal( | ||||
| bm, (BMElem **)elems, min_ii(n, bm->totfacesel), | bm, (BMElem **)elems, min_ii(n, bm->totfacesel), | ||||
| BM_FACES_OF_MESH, BM_FACE); | BM_FACES_OF_MESH, BM_FACE); | ||||
| } | } | ||||
| #endif | #endif | ||||
| int getTransformOrientation_ex(const bContext *C, float normal[3], float plane[3], const short around) | int getTransformOrientation_ex(const bContext *C, float normal[3], float plane[3], const short around) | ||||
| { | { | ||||
| SceneLayer *sl = CTX_data_scene_layer(C); | ViewLayer *sl = CTX_data_view_layer(C); | ||||
| Object *obedit = CTX_data_edit_object(C); | Object *obedit = CTX_data_edit_object(C); | ||||
| Base *base; | Base *base; | ||||
| Object *ob = OBACT(sl); | Object *ob = OBACT(sl); | ||||
| int result = ORIENTATION_NONE; | int result = ORIENTATION_NONE; | ||||
| const bool activeOnly = (around == V3D_AROUND_ACTIVE); | const bool activeOnly = (around == V3D_AROUND_ACTIVE); | ||||
| zero_v3(normal); | zero_v3(normal); | ||||
| zero_v3(plane); | zero_v3(plane); | ||||
| ▲ Show 20 Lines • Show All 527 Lines • Show Last 20 Lines | |||||