Blender V5.3
lattice_ops.cc
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2008 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#include "DNA_lattice_types.h"
10
11#include "BKE_key.hh"
12
13#include "WM_api.hh"
14
15#include "ED_lattice.hh"
16#include "ED_screen.hh"
17
18#include "lattice_intern.hh"
19
20namespace blender {
21
33
35{
36 wmKeyMap *keymap = WM_keymap_ensure(keyconf, "Lattice", SPACE_EMPTY, RGN_TYPE_WINDOW);
38}
39
41{
42 BLI_assert(latt->editlatt);
43
44 return BKE_keyblock_find_by_index(latt->key, latt->editlatt->shapenr - 1);
45}
46
47} // namespace blender
BMesh Iterators.
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
void WM_operatortype_append(void(*opfunc)(wmOperatorType *))
void LATTICE_OT_select_mirror(wmOperatorType *ot)
void ED_operatortypes_lattice()
bool ED_operator_editlattice(bContext *C)
KeyBlock * ED_lattice_get_edit_shape_key(const Lattice *latt)
void LATTICE_OT_flip(wmOperatorType *ot)
void LATTICE_OT_select_all(wmOperatorType *ot)
void LATTICE_OT_select_random(wmOperatorType *ot)
KeyBlock * BKE_keyblock_find_by_index(Key *key, int index)
Definition key.cc:1425
wmKeyMap * WM_keymap_ensure(wmKeyConfig *keyconf, const char *idname, int spaceid, int regionid)
Definition wm_keymap.cc:935
void LATTICE_OT_select_less(wmOperatorType *ot)
void ED_keymap_lattice(wmKeyConfig *keyconf)
void LATTICE_OT_select_more(wmOperatorType *ot)
void LATTICE_OT_select_ungrouped(wmOperatorType *ot)
void LATTICE_OT_make_regular(wmOperatorType *ot)
struct EditLatt * editlatt
bool(*) poll(struct bContext *)