Blender V4.3
mball_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_scene_types.h"
10
11#include "RNA_access.hh"
12
13#include "WM_api.hh"
14#include "WM_types.hh"
15
16#include "ED_mball.hh"
17#include "ED_screen.hh"
18
19#include "mball_intern.hh"
20
33
35{
37 wmOperatorTypeMacro *otmacro;
38
39 ot = WM_operatortype_append_macro("MBALL_OT_duplicate_move",
40 "Duplicate",
41 "Make copies of the selected metaball elements and move them",
43 WM_operatortype_macro_define(ot, "MBALL_OT_duplicate_metaelems");
44 otmacro = WM_operatortype_macro_define(ot, "TRANSFORM_OT_translate");
45 RNA_boolean_set(otmacro->ptr, "use_proportional_edit", false);
46}
47
49{
50 wmKeyMap *keymap = WM_keymap_ensure(keyconf, "Metaball", SPACE_EMPTY, RGN_TYPE_WINDOW);
52}
@ RGN_TYPE_WINDOW
@ SPACE_EMPTY
bool ED_operator_editmball(bContext *C)
@ OPTYPE_UNDO
Definition WM_types.hh:162
@ OPTYPE_REGISTER
Definition WM_types.hh:160
void MBALL_OT_select_all(wmOperatorType *ot)
void MBALL_OT_hide_metaelems(wmOperatorType *ot)
void MBALL_OT_duplicate_metaelems(wmOperatorType *ot)
void MBALL_OT_select_random_metaelems(wmOperatorType *ot)
void MBALL_OT_select_similar(wmOperatorType *ot)
void MBALL_OT_delete_metaelems(wmOperatorType *ot)
void MBALL_OT_reveal_metaelems(wmOperatorType *ot)
void ED_operatortypes_metaball()
Definition mball_ops.cc:21
void ED_operatormacros_metaball()
Definition mball_ops.cc:34
void ED_keymap_metaball(wmKeyConfig *keyconf)
Definition mball_ops.cc:48
void RNA_boolean_set(PointerRNA *ptr, const char *name, bool value)
bool(* poll)(struct bContext *)
wmOperatorType * ot
Definition wm_files.cc:4125
wmKeyMap * WM_keymap_ensure(wmKeyConfig *keyconf, const char *idname, int spaceid, int regionid)
Definition wm_keymap.cc:897
wmOperatorTypeMacro * WM_operatortype_macro_define(wmOperatorType *ot, const char *idname)
void WM_operatortype_append(void(*opfunc)(wmOperatorType *))
wmOperatorType * WM_operatortype_append_macro(const char *idname, const char *name, const char *description, int flag)