|
Blender
V2.93
|
#include <math.h>#include <string.h>#include <unistd.h>#include "MEM_guardedalloc.h"#include "BLI_blenlib.h"#include "BLI_math.h"#include "BLI_utildefines.h"#include "DNA_key_types.h"#include "DNA_lattice_types.h"#include "DNA_mesh_types.h"#include "DNA_meshdata_types.h"#include "DNA_object_types.h"#include "BKE_context.h"#include "BKE_key.h"#include "BKE_lattice.h"#include "BKE_main.h"#include "BKE_object.h"#include "DEG_depsgraph.h"#include "DEG_depsgraph_build.h"#include "BLI_sys_types.h"#include "ED_mesh.h"#include "ED_object.h"#include "RNA_access.h"#include "RNA_define.h"#include "WM_api.h"#include "WM_types.h"#include "object_intern.h"Go to the source code of this file.
Shape Key Move (Re-Order) Operator | |
| enum | { KB_MOVE_TOP = -2 , KB_MOVE_UP = -1 , KB_MOVE_DOWN = 1 , KB_MOVE_BOTTOM = 2 } |
| static int | shape_key_move_exec (bContext *C, wmOperator *op) |
| void | OBJECT_OT_shape_key_move (wmOperatorType *ot) |
| anonymous enum |
| Enumerator | |
|---|---|
| KB_MOVE_TOP | |
| KB_MOVE_UP | |
| KB_MOVE_DOWN | |
| KB_MOVE_BOTTOM | |
Definition at line 478 of file object_shapekey.c.
Definition at line 71 of file object_shapekey.c.
References BKE_key_from_object(), BKE_object_shapekey_insert(), BLI_findindex(), Key::block, C, CTX_data_main(), NC_OBJECT, ND_DRAW, NULL, Object::shapenr, and WM_event_add_notifier().
Referenced by shape_key_add_exec().
| void OBJECT_OT_shape_key_add | ( | wmOperatorType * | ot | ) |
Definition at line 280 of file object_shapekey.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_boolean(), shape_key_add_exec(), shape_key_mode_poll(), and wmOperatorType::srna.
Referenced by ED_operatortypes_object().
| void OBJECT_OT_shape_key_clear | ( | wmOperatorType * | ot | ) |
Definition at line 375 of file object_shapekey.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, shape_key_clear_exec(), and shape_key_poll().
Referenced by ED_operatortypes_object().
| void OBJECT_OT_shape_key_mirror | ( | wmOperatorType * | ot | ) |
Definition at line 449 of file object_shapekey.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_boolean(), shape_key_mirror_exec(), shape_key_mode_poll(), and wmOperatorType::srna.
Referenced by ED_operatortypes_object().
| void OBJECT_OT_shape_key_move | ( | wmOperatorType * | ot | ) |
Definition at line 520 of file object_shapekey.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, KB_MOVE_BOTTOM, KB_MOVE_DOWN, KB_MOVE_TOP, KB_MOVE_UP, wmOperatorType::name, NULL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_enum(), shape_key_move_exec(), shape_key_move_poll(), and wmOperatorType::srna.
Referenced by ED_operatortypes_object().
| void OBJECT_OT_shape_key_remove | ( | wmOperatorType * | ot | ) |
Definition at line 331 of file object_shapekey.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_boolean(), shape_key_mode_exists_poll(), shape_key_remove_exec(), and wmOperatorType::srna.
Referenced by ED_operatortypes_object().
| void OBJECT_OT_shape_key_retime | ( | wmOperatorType * | ot | ) |
Definition at line 413 of file object_shapekey.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, shape_key_poll(), and shape_key_retime_exec().
Referenced by ED_operatortypes_object().
|
static |
Definition at line 107 of file object_shapekey.c.
References BKE_key_from_object(), BKE_lattice_index_from_uvw(), BLI_findlink(), Key::block, C, copy_v3_v3(), KeyBlock::data, Object::data, DEG_id_tag_update(), ED_mesh_mirror_spatial_table_begin(), ED_mesh_mirror_spatial_table_end(), i1, Object::id, ID_RECALC_GEOMETRY, MEM_callocN, MEM_freeN, mesh_get_x_mirror_vert(), Mesh::mvert, NC_OBJECT, ND_DRAW, NULL, OB_LATTICE, OB_MESH, Lattice::pntsu, Lattice::pntsv, Lattice::pntsw, Object::shapenr, KeyBlock::totelem, Object::type, v, w(), and WM_event_add_notifier().
Referenced by shape_key_mirror_exec().
Definition at line 90 of file object_shapekey.c.
References BKE_key_from_object(), BKE_object_shapekey_remove(), BLI_findlink(), Key::block, NULL, and Object::shapenr.
Referenced by shape_key_remove_exec().
|
static |
Definition at line 267 of file object_shapekey.c.
References C, CTX_data_main(), DEG_id_tag_update(), DEG_relations_tag_update(), ED_object_context(), ED_object_shape_key_add(), Object::id, ID_RECALC_GEOMETRY, OPERATOR_FINISHED, wmOperator::ptr, and RNA_boolean_get().
Referenced by OBJECT_OT_shape_key_add().
|
static |
Definition at line 355 of file object_shapekey.c.
References BKE_key_from_object(), BKE_keyblock_from_object(), Key::block, C, KeyBlock::curval, DEG_id_tag_update(), ED_object_context(), ListBase::first, Object::id, ID_RECALC_GEOMETRY, NC_OBJECT, ND_DRAW, KeyBlock::next, OPERATOR_CANCELLED, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by OBJECT_OT_shape_key_clear().
|
static |
Definition at line 434 of file object_shapekey.c.
References C, ED_mesh_report_mirror(), ED_object_context(), object_shape_key_mirror(), OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, and RNA_boolean_get().
Referenced by OBJECT_OT_shape_key_mirror().
|
static |
Definition at line 243 of file object_shapekey.c.
References BKE_keyblock_from_object(), C, ED_object_context(), NULL, and shape_key_mode_poll().
Referenced by OBJECT_OT_shape_key_remove().
|
static |
Definition at line 236 of file object_shapekey.c.
References C, ED_object_context(), Object::mode, OB_MODE_EDIT, and shape_key_poll().
Referenced by OBJECT_OT_shape_key_add(), OBJECT_OT_shape_key_mirror(), shape_key_mode_exists_poll(), and shape_key_move_poll().
|
static |
Definition at line 485 of file object_shapekey.c.
References BKE_key_from_object(), BKE_keyblock_move(), C, DEG_id_tag_update(), ED_object_context(), ELEM, Object::id, ID_RECALC_GEOMETRY, KB_MOVE_BOTTOM, KB_MOVE_DOWN, KB_MOVE_TOP, KB_MOVE_UP, KEY_NORMAL, NC_OBJECT, ND_DRAW, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), Object::shapenr, Key::totkey, type, Key::type, and WM_event_add_notifier().
Referenced by OBJECT_OT_shape_key_move().
|
static |
Definition at line 252 of file object_shapekey.c.
References BKE_key_from_object(), C, ED_object_context(), NULL, shape_key_mode_poll(), and Key::totkey.
Referenced by OBJECT_OT_shape_key_move().
|
static |
Definition at line 227 of file object_shapekey.c.
References C, data, Object::data, ED_object_context(), ID_IS_LINKED, ID_IS_OVERRIDE_LIBRARY, NULL, and return().
Referenced by OBJECT_OT_shape_key_clear(), OBJECT_OT_shape_key_retime(), and shape_key_mode_poll().
|
static |
Definition at line 308 of file object_shapekey.c.
References BKE_object_shapekey_free(), C, CTX_data_main(), DEG_id_tag_update(), DEG_relations_tag_update(), ED_object_context(), Object::id, ID_RECALC_GEOMETRY, NC_OBJECT, ND_DRAW, object_shapekey_remove(), OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), and WM_event_add_notifier().
Referenced by OBJECT_OT_shape_key_remove().
|
static |
Definition at line 391 of file object_shapekey.c.
References BKE_key_from_object(), BKE_keyblock_from_object(), Key::block, C, DEG_id_tag_update(), ED_object_context(), ListBase::first, Object::id, ID_RECALC_GEOMETRY, NC_OBJECT, ND_DRAW, KeyBlock::next, OPERATOR_CANCELLED, OPERATOR_FINISHED, KeyBlock::pos, and WM_event_add_notifier().
Referenced by OBJECT_OT_shape_key_retime().