Blender
V3.3
|
#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 "BLT_translation.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_crazyspace.h"
#include "BKE_key.h"
#include "BKE_lattice.h"
#include "BKE_main.h"
#include "BKE_object.h"
#include "BKE_report.h"
#include "DEG_depsgraph.h"
#include "DEG_depsgraph_build.h"
#include "DEG_depsgraph_query.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 506 of file object_shapekey.c.
Definition at line 60 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 269 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 403 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 477 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 548 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 352 of file object_shapekey.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::get_description, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::poll_property, RNA_def_boolean(), shape_key_mode_exists_poll(), shape_key_remove_exec(), shape_key_remove_get_description(), shape_key_remove_poll_property(), and wmOperatorType::srna.
Referenced by ED_operatortypes_object().
void OBJECT_OT_shape_key_retime | ( | wmOperatorType * | ot | ) |
Definition at line 441 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 96 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 79 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 256 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 383 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 462 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().
Definition at line 232 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().
Definition at line 225 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 513 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().
Definition at line 241 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().
Definition at line 216 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 297 of file object_shapekey.c.
References BKE_key_evaluate_object_ex(), BKE_object_shapekey_free(), C, CTX_data_main(), Object::data, DEG_id_tag_update(), DEG_relations_tag_update(), ED_object_context(), Object::id, ID_RECALC_GEOMETRY, MEM_freeN, NC_OBJECT, ND_DRAW, NULL, 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 338 of file object_shapekey.c.
References BLI_strdup(), NULL, ptr, RNA_boolean_get(), and TIP_.
Referenced by OBJECT_OT_shape_key_remove().
|
static |
Definition at line 324 of file object_shapekey.c.
References wmOperator::ptr, RNA_enum_get(), RNA_property_identifier(), and STREQ.
Referenced by OBJECT_OT_shape_key_remove().
|
static |
Definition at line 419 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().