Blender V4.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
9#include "DNA_lattice_types.h"
10#include "DNA_scene_types.h"
11
12#include "BKE_key.hh"
13
14#include "WM_api.hh"
15
16#include "ED_lattice.hh"
17#include "ED_screen.hh"
18
19#include "lattice_intern.hh"
20
32
34{
35 wmKeyMap *keymap = WM_keymap_ensure(keyconf, "Lattice", SPACE_EMPTY, RGN_TYPE_WINDOW);
37}
38
40{
41 BLI_assert(latt->editlatt);
42
43 return BKE_keyblock_find_by_index(latt->key, latt->editlatt->shapenr - 1);
44}
KeyBlock * BKE_keyblock_find_by_index(Key *key, int index)
Definition key.cc:1923
#define BLI_assert(a)
Definition BLI_assert.h:50
@ RGN_TYPE_WINDOW
@ SPACE_EMPTY
bool ED_operator_editlattice(bContext *C)
void LATTICE_OT_select_all(wmOperatorType *ot)
void LATTICE_OT_select_random(wmOperatorType *ot)
void LATTICE_OT_select_more(wmOperatorType *ot)
void LATTICE_OT_select_ungrouped(wmOperatorType *ot)
void LATTICE_OT_select_mirror(wmOperatorType *ot)
void LATTICE_OT_select_less(wmOperatorType *ot)
void LATTICE_OT_flip(wmOperatorType *ot)
void LATTICE_OT_make_regular(wmOperatorType *ot)
KeyBlock * ED_lattice_get_edit_shape_key(const Lattice *latt)
void ED_keymap_lattice(wmKeyConfig *keyconf)
void ED_operatortypes_lattice()
struct Key * key
struct EditLatt * editlatt
bool(* poll)(struct bContext *)
wmKeyMap * WM_keymap_ensure(wmKeyConfig *keyconf, const char *idname, int spaceid, int regionid)
Definition wm_keymap.cc:897
void WM_operatortype_append(void(*opfunc)(wmOperatorType *))