Blender
V3.3
|
#include <math.h>
#include <stddef.h>
#include <string.h>
#include "MEM_guardedalloc.h"
#include "DNA_curve_types.h"
#include "DNA_gpencil_types.h"
#include "DNA_lattice_types.h"
#include "DNA_mesh_types.h"
#include "DNA_meshdata_types.h"
#include "DNA_modifier_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "DNA_workspace_types.h"
#include "BLI_alloca.h"
#include "BLI_array.h"
#include "BLI_bitmap.h"
#include "BLI_blenlib.h"
#include "BLI_listbase.h"
#include "BLI_math.h"
#include "BLI_utildefines.h"
#include "BLI_utildefines_stack.h"
#include "BKE_context.h"
#include "BKE_customdata.h"
#include "BKE_deform.h"
#include "BKE_editmesh.h"
#include "BKE_lattice.h"
#include "BKE_layer.h"
#include "BKE_mesh.h"
#include "BKE_mesh_mapping.h"
#include "BKE_mesh_runtime.h"
#include "BKE_modifier.h"
#include "BKE_object.h"
#include "BKE_object_deform.h"
#include "BKE_report.h"
#include "DEG_depsgraph.h"
#include "DEG_depsgraph_build.h"
#include "DEG_depsgraph_query.h"
#include "BLT_translation.h"
#include "DNA_armature_types.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "RNA_enum_types.h"
#include "WM_api.h"
#include "WM_types.h"
#include "ED_mesh.h"
#include "ED_object.h"
#include "ED_screen.h"
#include "UI_resources.h"
#include "object_intern.h"
Go to the source code of this file.
Macros | |
#define | IS_BM_VERT_READ(v) (use_hide ? (BM_elem_flag_test(v, BM_ELEM_HIDDEN) == 0) : true) |
#define | IS_BM_VERT_WRITE(v) (use_select ? (BM_elem_flag_test(v, BM_ELEM_SELECT) != 0) : true) |
#define | IS_ME_VERT_READ(v) (use_hide ? (((v)->flag & ME_HIDE) == 0) : true) |
#define | IS_ME_VERT_WRITE(v) (use_select ? (((v)->flag & SELECT) != 0) : true) |
#define | WEIGHT_ACCUMULATE |
#define | VGROUP_MIRR_OP |
Operator Function Implementations | |
enum | { VGROUP_TOGGLE , VGROUP_LOCK , VGROUP_UNLOCK , VGROUP_INVERT } |
enum | { VGROUP_MASK_ALL , VGROUP_MASK_SELECTED , VGROUP_MASK_UNSELECTED , VGROUP_MASK_INVERT_UNSELECTED } |
static const EnumPropertyItem | vgroup_lock_actions [] |
static const EnumPropertyItem | vgroup_lock_mask [] |
static void | vgroup_select_verts (Object *ob, int select) |
static void | vgroup_duplicate (Object *ob) |
static bool | vgroup_normalize (Object *ob) |
static int * | getSurroundingVerts (Mesh *me, int vert, int *count) |
static void | getSingleCoordinate (MVert *points, int count, float coord[3]) |
static void | getVerticalAndHorizontalChange (const float norm[3], float d, const float coord[3], const float start[3], float distToStart, float *end, float(*changes)[2], float *dists, int index) |
static void | moveCloserToDistanceFromPlane (Depsgraph *depsgraph, Scene *UNUSED(scene), Object *ob, Mesh *me, int index, const float norm[3], const float coord[3], float d, float distToBe, float strength, float cp) |
static void | vgroup_fix (const bContext *C, Scene *UNUSED(scene), Object *ob, float distToBe, float strength, float cp) |
static void | vgroup_levels_subset (Object *ob, const bool *vgroup_validmap, const int vgroup_tot, const int UNUSED(subset_count), const float offset, const float gain) |
static bool | vgroup_normalize_all (Object *ob, const bool *vgroup_validmap, const int vgroup_tot, const int subset_count, const bool lock_active, ReportList *reports) |
static bool * | vgroup_selected_get (Object *ob) |
static void | vgroup_lock_all (Object *ob, int action, int mask) |
static void | vgroup_invert_subset (Object *ob, const bool *vgroup_validmap, const int vgroup_tot, const int UNUSED(subset_count), const bool auto_assign, const bool auto_remove) |
static void | vgroup_smooth_subset (Object *ob, const bool *vgroup_validmap, const int vgroup_tot, const int subset_count, const float fac, const int repeat, const float fac_expand) |
static int | inv_cmp_mdef_vert_weights (const void *a1, const void *a2) |
static int | vgroup_limit_total_subset (Object *ob, const bool *vgroup_validmap, const int vgroup_tot, const int subset_count, const int max_weights) |
static void | vgroup_clean_subset (Object *ob, const bool *vgroup_validmap, const int vgroup_tot, const int UNUSED(subset_count), const float epsilon, const bool keep_single) |
static void | vgroup_quantize_subset (Object *ob, const bool *vgroup_validmap, const int vgroup_tot, const int UNUSED(subset_count), const int steps) |
static void | dvert_mirror_op (MDeformVert *dvert, MDeformVert *dvert_mirr, const char sel, const char sel_mirr, const int *flip_map, const int flip_map_len, const bool mirror_weights, const bool flip_vgroups, const bool all_vgroups, const int act_vgroup) |
void | ED_vgroup_mirror (Object *ob, const bool mirror_weights, const bool flip_vgroups, const bool all_vgroups, const bool use_topology, int *r_totmirr, int *r_totfail) |
static void | vgroup_delete_active (Object *ob) |
static void | vgroup_assign_verts (Object *ob, const float weight) |
Vertex Group Sort Operator | |
enum | { SORT_TYPE_NAME = 0 , SORT_TYPE_BONEHIERARCHY = 1 } |
static char * | vgroup_init_remap (Object *ob) |
static int | vgroup_do_remap (Object *ob, const char *name_array, wmOperator *op) |
static int | vgroup_sort_name (const void *def_a_ptr, const void *def_b_ptr) |
static void | vgroup_sort_bone_hierarchy (Object *ob, ListBase *bonebase) |
static int | vertex_group_sort_exec (bContext *C, wmOperator *op) |
void | OBJECT_OT_vertex_group_sort (wmOperatorType *ot) |
Shared Weight Transfer Operator Properties | |
static const EnumPropertyItem | WT_vertex_group_select_item [] |
const EnumPropertyItem * | ED_object_vgroup_selection_itemf_helper (const bContext *C, PointerRNA *UNUSED(ptr), PropertyRNA *prop, bool *r_free, const uint selection_mask) |
static const EnumPropertyItem * | rna_vertex_group_with_single_itemf (bContext *C, PointerRNA *ptr, PropertyRNA *prop, bool *r_free) |
static const EnumPropertyItem * | rna_vertex_group_select_itemf (bContext *C, PointerRNA *ptr, PropertyRNA *prop, bool *r_free) |
static void | vgroup_operator_subset_select_props (wmOperatorType *ot, bool use_active) |
#define IS_BM_VERT_READ | ( | v | ) | (use_hide ? (BM_elem_flag_test(v, BM_ELEM_HIDDEN) == 0) : true) |
#define IS_BM_VERT_WRITE | ( | v | ) | (use_select ? (BM_elem_flag_test(v, BM_ELEM_SELECT) != 0) : true) |
#define VGROUP_MIRR_OP |
#define WEIGHT_ACCUMULATE |
anonymous enum |
Enumerator | |
---|---|
VGROUP_TOGGLE | |
VGROUP_LOCK | |
VGROUP_UNLOCK | |
VGROUP_INVERT |
Definition at line 1675 of file object_vgroup.c.
anonymous enum |
Enumerator | |
---|---|
VGROUP_MASK_ALL | |
VGROUP_MASK_SELECTED | |
VGROUP_MASK_UNSELECTED | |
VGROUP_MASK_INVERT_UNSELECTED |
Definition at line 1694 of file object_vgroup.c.
anonymous enum |
Enumerator | |
---|---|
SORT_TYPE_NAME | |
SORT_TYPE_BONEHIERARCHY |
Definition at line 4132 of file object_vgroup.c.
|
static |
Definition at line 4330 of file object_vgroup.c.
References BKE_object_defgroup_list(), BKE_report(), BLI_findlink(), MDeformWeight::def_nr, DG_LOCK_WEIGHT, bDeformGroup::flag, wmOperator::reports, and RPT_ERROR.
Referenced by vertex_weight_delete_exec(), and vertex_weight_paste_exec().
|
static |
Definition at line 2261 of file object_vgroup.c.
References BKE_defvert_copy(), BKE_defvert_copy_index(), BKE_defvert_ensure_index(), BKE_defvert_find_index(), BKE_defvert_flip(), BKE_defvert_remove_group(), BLI_assert, SWAP, and MDeformWeight::weight.
|
static |
Definition at line 513 of file object_vgroup.c.
References BM_ELEM_CD_GET_VOID_P, BMVert::co, Object::data, Mesh::edit_mesh, editbmesh_get_x_mirror_vert(), Mesh::editflag, ME_EDIT_MIRROR_TOPO, and mesh_defvert_mirror_update_internal().
Referenced by ED_vgroup_vert_active_mirror(), vgroup_copy_active_to_sel(), vgroup_copy_active_to_sel_single(), and vgroup_normalize_active_vertex().
Definition at line 530 of file object_vgroup.c.
References Object::data, Mesh::dvert, Mesh::editflag, ME_EDIT_MIRROR_TOPO, mesh_defvert_mirror_update_internal(), mesh_get_x_mirror_vert(), and NULL.
Referenced by ED_vgroup_vert_active_mirror(), vgroup_copy_active_to_sel(), vgroup_copy_active_to_sel_single(), and vgroup_normalize_active_vertex().
const EnumPropertyItem* ED_object_vgroup_selection_itemf_helper | ( | const bContext * | C, |
PointerRNA * | UNUSEDptr, | ||
PropertyRNA * | prop, | ||
bool * | r_free, | ||
const uint | selection_mask | ||
) |
Definition at line 694 of file object_vgroup.c.
References BKE_modifiers_is_deformed_by_armature(), BKE_object_pose_armature_get(), C, CTX_data_active_object(), NULL, RNA_def_property_enum_default(), RNA_enum_item_end(), RNA_enum_items_add_value(), WT_vertex_group_select_item, WT_VGROUP_ACTIVE, WT_VGROUP_ALL, WT_VGROUP_BONE_DEFORM, and WT_VGROUP_BONE_SELECT.
Referenced by rna_vertex_group_select_itemf(), and rna_vertex_group_with_single_itemf().
Matching index only.
Definition at line 358 of file object_vgroup.c.
References BKE_object_defgroup_active_index_get(), BKE_object_defgroup_active_index_set(), BKE_object_defgroup_data_create(), BKE_object_defgroup_list(), BKE_object_defgroup_list_mutable(), BKE_object_defgroup_remap_update_users(), BKE_object_defgroup_remove_all(), BLI_assert, BLI_duplicatelist(), BLI_freelistN(), BLI_listbase_count(), Object::data, ED_vgroup_parray_alloc(), MEM_dupallocN, MEM_freeN, MEM_mallocN, MEM_SAFE_FREE, and NULL.
Referenced by vertex_group_copy_to_selected_exec().
Removes out of range #MDeformWeights
Definition at line 130 of file object_vgroup.c.
References BKE_defvert_remove_group(), MDeformWeight::def_nr, MDeformVert::dw, ED_vgroup_parray_alloc(), and MDeformVert::totweight.
Referenced by ED_object_vgroup_calc_from_armature(), and gpencil_object_vgroup_calc_from_armature().
void ED_vgroup_mirror | ( | Object * | ob, |
const bool | mirror_weights, | ||
const bool | flip_vgroups, | ||
const bool | all_vgroups, | ||
const bool | use_topology, | ||
int * | r_totmirr, | ||
int * | r_totfail | ||
) |
Definition at line 2327 of file object_vgroup.c.
References BKE_lattice_index_from_uvw(), BKE_object_defgroup_active_index_get(), BKE_object_defgroup_flip_map(), BKE_object_defgroup_flip_map_single(), BKE_object_defgroup_list(), BLI_assert, BLI_BITMAP_ENABLE, BLI_BITMAP_NEW, BLI_BITMAP_TEST, BLI_findlink(), BMEditMesh::bm, BM_ELEM_CD_GET_VOID_P, BM_elem_flag_enable, BM_elem_flag_test, BM_ELEM_SELECT, BM_ELEM_TAG, BM_ITER_MESH, BM_mesh_elem_hflag_disable_all(), BM_VERT, BM_VERTS_OF_MESH, CD_MDEFORMVERT, CustomData_get_offset(), Object::data, Lattice::def, MDeformWeight::def_nr, Lattice::dvert, Mesh::dvert, EDBM_verts_mirror_cache_begin(), EDBM_verts_mirror_cache_end(), EDBM_verts_mirror_get(), Mesh::edit_mesh, Mesh::editflag, BPoint::f1, MVert::flag, i1, ME_EDIT_PAINT_VERT_SEL, MEM_freeN, mesh_get_x_mirror_vert(), Mesh::mvert, NULL, OB_LATTICE, OB_MESH, Lattice::pntsu, Lattice::pntsv, Lattice::pntsw, SELECT, Mesh::totvert, Object::type, v, BMesh::vdata, vgroup_edit_lattice(), VGROUP_MIRR_OP, and w().
Referenced by vertex_group_mirror_exec().
|
static |
Definition at line 796 of file object_vgroup.c.
References BKE_defvert_add_index_notest(), BKE_defvert_find_index(), BKE_defvert_remove_group(), BKE_object_defgroup_array_get(), Object::data, NULL, MDeformWeight::weight, WEIGHT_ADD, WEIGHT_REPLACE, and WEIGHT_SUBTRACT.
Referenced by ED_vgroup_vert_add().
bool ED_vgroup_parray_alloc | ( | ID * | id, |
MDeformVert *** | dvert_arr, | ||
int * | dvert_tot, | ||
const bool | use_vert_sel | ||
) |
Definition at line 148 of file object_vgroup.c.
References BMEditMesh::bm, bm, BM_ELEM_CD_GET_VOID_P, BM_elem_flag_test, BM_ELEM_SELECT, BM_ITER_MESH, BM_VERTS_OF_MESH, CD_MDEFORMVERT, CustomData_get_offset(), Lattice::def, Lattice::dvert, Mesh::dvert, Mesh::edit_mesh, Lattice::editlatt, BPoint::f1, MVert::flag, GS, id, ID_LT, ID_ME, if(), EditLatt::latt, MEM_mallocN, Mesh::mvert, ID::name, NULL, Lattice::pntsu, Lattice::pntsv, Lattice::pntsw, SELECT, BMesh::totvert, Mesh::totvert, and BMesh::vdata.
Referenced by ED_vgroup_array_copy(), ED_vgroup_data_clamp_range(), ED_vgroup_parray_mirror_assign(), ED_vgroup_parray_mirror_sync(), vgroup_clean_subset(), vgroup_duplicate(), vgroup_invert_subset(), vgroup_levels_subset(), vgroup_limit_total_subset(), vgroup_normalize(), vgroup_normalize_all(), vgroup_quantize_subset(), and vgroup_smooth_subset().
void ED_vgroup_parray_from_weight_array | ( | MDeformVert ** | dvert_array, |
const int | dvert_tot, | ||
const float * | dvert_weights, | ||
const int | def_nr, | ||
const bool | remove_zero | ||
) |
Definition at line 459 of file object_vgroup.c.
References BKE_defvert_ensure_index(), BKE_defvert_find_index(), BKE_defvert_remove_group(), BLI_assert, IN_RANGE_INCL, and MDeformWeight::weight.
Referenced by vgroup_smooth_subset().
void ED_vgroup_parray_mirror_assign | ( | struct Object * | ob, |
struct MDeformVert ** | dvert_array, | ||
int | dvert_tot | ||
) |
Fill in the pointers for mirror verts (as if all mirror verts were selected too).
similar to ED_vgroup_parray_mirror_sync but only fill in mirror points.
Definition at line 294 of file object_vgroup.c.
References BKE_editmesh_from_object(), BLI_assert, BMEditMesh::bm, BM_mesh_elem_table_ensure(), BM_VERT, Object::data, ED_mesh_mirror_get_vert(), ED_vgroup_parray_alloc(), MEM_freeN, and NULL.
Referenced by vgroup_clean_subset(), and vgroup_quantize_subset().
void ED_vgroup_parray_mirror_sync | ( | struct Object * | ob, |
struct MDeformVert ** | dvert_array, | ||
int | dvert_tot, | ||
const bool * | vgroup_validmap, | ||
int | vgroup_tot | ||
) |
For use with tools that use ED_vgroup_parray_alloc with use_vert_sel == true. This finds the unselected mirror deform verts and copies the weights to them from the selected.
Definition at line 251 of file object_vgroup.c.
References BKE_defvert_mirror_subset(), BKE_editmesh_from_object(), BKE_object_defgroup_flip_map(), BLI_assert, BMEditMesh::bm, BM_mesh_elem_table_ensure(), BM_VERT, Object::data, ED_mesh_mirror_get_vert(), ED_vgroup_parray_alloc(), MEM_freeN, and NULL.
Referenced by vgroup_invert_subset(), vgroup_levels_subset(), and vgroup_smooth_subset().
void ED_vgroup_parray_remove_zero | ( | MDeformVert ** | dvert_array, |
const int | dvert_tot, | ||
const bool * | vgroup_validmap, | ||
const int | vgroup_tot, | ||
const float | epsilon, | ||
const bool | keep_single | ||
) |
Definition at line 324 of file object_vgroup.c.
References BKE_defvert_remove_group(), MDeformWeight::def_nr, MDeformVert::dw, blender::robust_pred::epsilon, MDeformVert::totweight, and MDeformWeight::weight.
Referenced by vgroup_clean_subset(), and vgroup_invert_subset().
void ED_vgroup_parray_to_weight_array | ( | const MDeformVert ** | dvert_array, |
const int | dvert_tot, | ||
float * | dvert_weights, | ||
const int | def_nr | ||
) |
Definition at line 448 of file object_vgroup.c.
References BKE_defvert_find_weight().
Referenced by vgroup_smooth_subset().
Definition at line 983 of file object_vgroup.c.
References BKE_object_defgroup_active_index_set(), and BKE_object_defgroup_name_index().
Referenced by ED_armature_pose_select_pick_bone(), and pose_select_mirror_exec().
Definition at line 114 of file object_vgroup.c.
References bArmature::act_bone, BKE_object_defgroup_active_index_set(), BKE_object_defgroup_name_index(), BKE_object_pose_armature_get(), Object::data, Object::mode, Bone::name, and OB_MODE_POSE.
Referenced by ed_vwpaintmode_enter_generic().
Use when adjusting the active vertex weight and apply to mirror vertices.
Definition at line 549 of file object_vgroup.c.
References BMEditMesh::bm, CD_MDEFORMVERT, CustomData_get_offset(), Object::data, ED_mesh_active_dvert_get_em(), ED_mesh_active_dvert_get_ob(), ED_mesh_defvert_mirror_update_em(), ED_mesh_defvert_mirror_update_ob(), Mesh::edit_mesh, ME_SYMMETRY_X, Mesh::symmetry, and BMesh::vdata.
Referenced by do_view3d_vgroup_buttons().
void ED_vgroup_vert_add | ( | struct Object * | ob, |
struct bDeformGroup * | dg, | ||
int | vertnum, | ||
float | weight, | ||
int | assignmode | ||
) |
Called while not in editmode.
Definition at line 860 of file object_vgroup.c.
References BKE_object_defgroup_array_get(), BKE_object_defgroup_data_create(), BKE_object_defgroup_list(), BLI_findindex(), Object::data, ED_vgroup_nr_vert_add(), and NULL.
Referenced by envelope_bone_weighting(), heat_bone_weighting(), SkinInfo::link_armature(), and skin_armature_bone_create().
void ED_vgroup_vert_remove | ( | struct Object * | ob, |
struct bDeformGroup * | dg, | ||
int | vertnum | ||
) |
Mesh object mode, lattice can be in edit-mode.
Definition at line 888 of file object_vgroup.c.
References BKE_defvert_find_index(), BKE_defvert_remove_group(), BKE_object_defgroup_array_get(), BKE_object_defgroup_list(), BLI_findindex(), Object::data, and NULL.
Referenced by envelope_bone_weighting(), and heat_bone_weighting().
float ED_vgroup_vert_weight | ( | Object * | ob, |
bDeformGroup * | dg, | ||
int | vertnum | ||
) |
Definition at line 971 of file object_vgroup.c.
References BKE_object_defgroup_list(), BLI_findindex(), and get_vert_def_nr().
Referenced by heat_bone_weighting().
Definition at line 918 of file object_vgroup.c.
References BKE_defvert_find_index(), BMEditMesh::bm, bm, BM_ELEM_CD_GET_VOID_P, BM_mesh_elem_table_ensure(), BM_VERT, BM_vert_at_index(), CD_MDEFORMVERT, CustomData_get_offset(), Object::data, Lattice::dvert, Mesh::dvert, Mesh::edit_mesh, NULL, OB_LATTICE, OB_MESH, Lattice::pntsu, Lattice::pntsv, Lattice::pntsw, BMesh::totvert, Mesh::totvert, Object::type, BMesh::vdata, vgroup_edit_lattice(), and MDeformWeight::weight.
Referenced by ED_vgroup_vert_weight().
Definition at line 1271 of file object_vgroup.c.
References add_v3_v3(), count, mul_v3_fl(), and zero_v3().
Referenced by vgroup_fix().
|
static |
Definition at line 1201 of file object_vgroup.c.
References Freestyle::a, usdtokens::b(), BLI_array_append, BLI_array_declare, BLI_array_len, BLI_array_reserve, count, MPoly::loopstart, Mesh::mloop, Mesh::mpoly, NULL, MPoly::totloop, Mesh::totpoly, v, MLoop::v, and verts.
Referenced by vgroup_fix().
|
static |
Definition at line 1285 of file object_vgroup.c.
References closest_to_plane_normalized_v3(), dot_v3v3(), len_v3v3(), norm(), and plane_from_point_normal_v3().
Definition at line 2091 of file object_vgroup.c.
References MDeformWeight::weight.
Referenced by vgroup_limit_total_subset().
|
static |
Definition at line 491 of file object_vgroup.c.
References BKE_defvert_ensure_index(), BKE_defvert_find_weight(), BKE_defvert_sync_mapped(), BKE_object_defgroup_flip_index(), BKE_object_defgroup_flip_map(), MEM_freeN, and MDeformWeight::weight.
Referenced by ED_mesh_defvert_mirror_update_em(), and ED_mesh_defvert_mirror_update_ob().
|
static |
Definition at line 1323 of file object_vgroup.c.
References Object::data, DEG_get_evaluated_object(), DEG_get_evaluated_scene(), depsgraph, Mesh::dvert, and MDeformVert::totweight.
Referenced by vgroup_fix().
Definition at line 84 of file object_vgroup.c.
References C, ED_object_array_in_mode_or_selected(), and object_array_for_wpaint_filter().
Referenced by vertex_group_clean_exec(), vertex_group_limit_total_exec(), and vertex_group_smooth_exec().
Definition at line 75 of file object_vgroup.c.
References C, user_data, and vertex_group_supported_poll_ex().
Referenced by object_array_for_wpaint().
void OBJECT_OT_vertex_group_add | ( | wmOperatorType * | ot | ) |
Definition at line 2848 of file object_vgroup.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, vertex_group_add_exec(), and vertex_group_supported_poll().
Referenced by ED_operatortypes_object().
void OBJECT_OT_vertex_group_assign | ( | wmOperatorType * | ot | ) |
Definition at line 2934 of file object_vgroup.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_UNDO, ot, wmOperatorType::poll, vertex_group_assign_exec(), and vertex_group_vert_select_unlocked_poll().
Referenced by ED_operatortypes_object().
void OBJECT_OT_vertex_group_assign_new | ( | wmOperatorType * | ot | ) |
Definition at line 2969 of file object_vgroup.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_UNDO, ot, wmOperatorType::poll, vertex_group_assign_new_exec(), and vertex_group_vert_select_poll().
Referenced by ED_operatortypes_object().
void OBJECT_OT_vertex_group_clean | ( | wmOperatorType * | ot | ) |
Definition at line 3637 of file object_vgroup.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_boolean(), RNA_def_float(), wmOperatorType::srna, vertex_group_clean_exec(), vertex_group_poll(), and vgroup_operator_subset_select_props().
Referenced by ED_operatortypes_object().
void OBJECT_OT_vertex_group_copy | ( | wmOperatorType * | ot | ) |
Definition at line 3131 of file object_vgroup.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, vertex_group_copy_exec(), and vertex_group_poll().
Referenced by ED_operatortypes_object().
void OBJECT_OT_vertex_group_copy_to_selected | ( | wmOperatorType * | ot | ) |
Definition at line 3877 of file object_vgroup.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, vertex_group_copy_to_selected_exec(), and vertex_group_poll().
Referenced by ED_operatortypes_object().
void OBJECT_OT_vertex_group_deselect | ( | wmOperatorType * | ot | ) |
Definition at line 3097 of file object_vgroup.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, vertex_group_deselect_exec(), and vertex_group_vert_select_poll().
Referenced by ED_operatortypes_object().
void OBJECT_OT_vertex_group_fix | ( | wmOperatorType * | ot | ) |
Definition at line 3329 of file object_vgroup.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_float(), wmOperatorType::srna, vertex_group_fix_exec(), and vertex_group_mesh_with_dvert_poll().
Referenced by ED_operatortypes_object().
void OBJECT_OT_vertex_group_invert | ( | wmOperatorType * | ot | ) |
Definition at line 3510 of file object_vgroup.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_boolean(), wmOperatorType::srna, vertex_group_invert_exec(), vertex_group_poll(), and vgroup_operator_subset_select_props().
Referenced by ED_operatortypes_object().
void OBJECT_OT_vertex_group_levels | ( | wmOperatorType * | ot | ) |
Definition at line 3174 of file object_vgroup.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_float(), wmOperatorType::srna, vertex_group_levels_exec(), vertex_group_poll(), and vgroup_operator_subset_select_props().
Referenced by ED_operatortypes_object().
void OBJECT_OT_vertex_group_limit_total | ( | wmOperatorType * | ot | ) |
Definition at line 3760 of file object_vgroup.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_int(), wmOperatorType::srna, vertex_group_limit_total_exec(), vertex_group_poll(), and vgroup_operator_subset_select_props().
Referenced by ED_operatortypes_object().
void OBJECT_OT_vertex_group_lock | ( | wmOperatorType * | ot | ) |
Definition at line 3452 of file object_vgroup.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::get_description, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_enum(), wmOperatorType::srna, vertex_group_lock_description(), vertex_group_lock_exec(), vertex_group_poll(), vgroup_lock_actions, vgroup_lock_mask, VGROUP_MASK_ALL, and VGROUP_TOGGLE.
Referenced by ED_operatortypes_object().
void OBJECT_OT_vertex_group_mirror | ( | wmOperatorType * | ot | ) |
Definition at line 3809 of file object_vgroup.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_boolean(), wmOperatorType::srna, vertex_group_mirror_exec(), and vertex_group_poll().
Referenced by ED_operatortypes_object().
void OBJECT_OT_vertex_group_move | ( | wmOperatorType * | ot | ) |
Definition at line 4235 of file object_vgroup.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, NULL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_enum(), wmOperatorType::srna, vertex_group_poll(), and vgroup_move_exec().
Referenced by ED_operatortypes_object().
void OBJECT_OT_vertex_group_normalize | ( | wmOperatorType * | ot | ) |
Definition at line 3219 of file object_vgroup.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, vertex_group_normalize_exec(), and vertex_group_poll().
Referenced by ED_operatortypes_object().
void OBJECT_OT_vertex_group_normalize_all | ( | wmOperatorType * | ot | ) |
Definition at line 3267 of file object_vgroup.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_boolean(), wmOperatorType::srna, vertex_group_normalize_all_exec(), vertex_group_poll(), and vgroup_operator_subset_select_props().
Referenced by ED_operatortypes_object().
void OBJECT_OT_vertex_group_quantize | ( | wmOperatorType * | ot | ) |
Definition at line 3695 of file object_vgroup.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_int(), wmOperatorType::srna, vertex_group_poll(), vertex_group_quantize_exec(), and vgroup_operator_subset_select_props().
Referenced by ED_operatortypes_object().
void OBJECT_OT_vertex_group_remove | ( | wmOperatorType * | ot | ) |
Definition at line 2891 of file object_vgroup.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_UNDO, ot, wmOperatorType::poll, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), wmOperatorType::srna, vertex_group_poll(), and vertex_group_remove_exec().
Referenced by ED_operatortypes_object().
void OBJECT_OT_vertex_group_remove_from | ( | wmOperatorType * | ot | ) |
Definition at line 3019 of file object_vgroup.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_UNDO, ot, wmOperatorType::poll, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), wmOperatorType::srna, vertex_group_remove_from_exec(), and vertex_group_vert_select_unlocked_poll().
Referenced by ED_operatortypes_object().
void OBJECT_OT_vertex_group_select | ( | wmOperatorType * | ot | ) |
Definition at line 3065 of file object_vgroup.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, vertex_group_select_exec(), and vertex_group_vert_select_poll().
Referenced by ED_operatortypes_object().
void OBJECT_OT_vertex_group_set_active | ( | wmOperatorType * | ot | ) |
Definition at line 3946 of file object_vgroup.c.
References wmOperatorType::description, DummyRNA_NULL_items, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, PROP_ENUM_NO_TRANSLATE, RNA_def_enum(), RNA_def_enum_funcs(), RNA_def_property_flag(), set_active_group_exec(), wmOperatorType::srna, vertex_group_poll(), vgroup_itemf(), and WM_menu_invoke().
Referenced by ED_operatortypes_object().
void OBJECT_OT_vertex_group_smooth | ( | wmOperatorType * | ot | ) |
Definition at line 3573 of file object_vgroup.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_float(), RNA_def_int(), wmOperatorType::srna, vertex_group_mesh_vert_poll(), vertex_group_smooth_exec(), and vgroup_operator_subset_select_props().
Referenced by ED_operatortypes_object().
void OBJECT_OT_vertex_group_sort | ( | wmOperatorType * | ot | ) |
Definition at line 4174 of file object_vgroup.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, NULL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_enum(), SORT_TYPE_BONEHIERARCHY, SORT_TYPE_NAME, wmOperatorType::srna, vertex_group_poll(), and vertex_group_sort_exec().
Referenced by ED_operatortypes_object().
void OBJECT_OT_vertex_weight_copy | ( | wmOperatorType * | ot | ) |
Definition at line 4549 of file object_vgroup.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, vertex_group_vert_select_mesh_poll(), and vertex_weight_copy_exec().
Referenced by ED_operatortypes_object().
void OBJECT_OT_vertex_weight_delete | ( | wmOperatorType * | ot | ) |
Definition at line 4416 of file object_vgroup.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, PROP_HIDDEN, PROP_SKIP_SAVE, RNA_def_int(), RNA_def_property_flag(), wmOperatorType::srna, vertex_group_vert_select_mesh_poll(), and vertex_weight_delete_exec().
Referenced by ED_operatortypes_object().
void OBJECT_OT_vertex_weight_normalize_active_vertex | ( | wmOperatorType * | ot | ) |
Definition at line 4514 of file object_vgroup.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, vertex_group_vert_select_mesh_poll(), and vertex_weight_normalize_active_vertex_exec().
Referenced by ED_operatortypes_object().
void OBJECT_OT_vertex_weight_paste | ( | wmOperatorType * | ot | ) |
Definition at line 4365 of file object_vgroup.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, PROP_HIDDEN, PROP_SKIP_SAVE, RNA_def_int(), RNA_def_property_flag(), wmOperatorType::srna, vertex_group_vert_select_mesh_poll(), and vertex_weight_paste_exec().
Referenced by ED_operatortypes_object().
void OBJECT_OT_vertex_weight_set_active | ( | wmOperatorType * | ot | ) |
Definition at line 4463 of file object_vgroup.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, PROP_HIDDEN, PROP_SKIP_SAVE, RNA_def_int(), RNA_def_property_flag(), wmOperatorType::srna, vertex_group_vert_select_mesh_poll(), and vertex_weight_set_active_exec().
Referenced by ED_operatortypes_object().
|
static |
Definition at line 754 of file object_vgroup.c.
References C, ED_object_vgroup_selection_itemf_helper(), ptr, WT_VGROUP_ACTIVE, and WT_VGROUP_MASK_ALL.
Referenced by vgroup_operator_subset_select_props().
|
static |
Definition at line 746 of file object_vgroup.c.
References C, ED_object_vgroup_selection_itemf_helper(), ptr, and WT_VGROUP_MASK_ALL.
Referenced by vgroup_operator_subset_select_props().
|
static |
Definition at line 3898 of file object_vgroup.c.
References BKE_object_defgroup_active_index_set(), BLI_assert, C, DEG_id_tag_update(), ED_object_context(), Object::id, ID_RECALC_GEOMETRY, NC_GEOM, ND_VERTEX_GROUP, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), and WM_event_add_notifier().
Referenced by OBJECT_OT_vertex_group_set_active().
|
static |
Definition at line 2835 of file object_vgroup.c.
References BKE_object_defgroup_add(), C, CTX_data_main(), Object::data, DEG_id_tag_update(), DEG_relations_tag_update(), ED_object_context(), Object::id, ID_RECALC_GEOMETRY, NC_GEOM, NC_OBJECT, ND_DRAW, ND_VERTEX_GROUP, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by OBJECT_OT_vertex_group_add().
|
static |
Definition at line 2922 of file object_vgroup.c.
References C, CTX_data_tool_settings(), Object::data, DEG_id_tag_update(), ED_object_context(), Object::id, ID_RECALC_GEOMETRY, NC_GEOM, ND_DATA, OPERATOR_FINISHED, vgroup_assign_verts(), ToolSettings::vgroup_weight, and WM_event_add_notifier().
Referenced by OBJECT_OT_vertex_group_assign(), and vertex_group_assign_new_exec().
|
static |
Definition at line 2959 of file object_vgroup.c.
References BKE_object_defgroup_add(), C, ED_object_context(), and vertex_group_assign_exec().
Referenced by OBJECT_OT_vertex_group_assign_new().
|
static |
Definition at line 3608 of file object_vgroup.c.
References BKE_object_defgroup_subset_from_select_type(), C, Object::data, DEG_id_tag_update(), Object::id, ID_RECALC_GEOMETRY, MEM_freeN, NC_GEOM, NC_OBJECT, ND_DATA, ND_DRAW, object_array_for_wpaint(), OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), RNA_enum_get(), RNA_float_get(), vgroup_clean_subset(), and WM_event_add_notifier().
Referenced by OBJECT_OT_vertex_group_clean().
|
static |
Definition at line 3118 of file object_vgroup.c.
References C, CTX_data_main(), Object::data, DEG_id_tag_update(), DEG_relations_tag_update(), ED_object_context(), Object::id, ID_RECALC_GEOMETRY, NC_GEOM, NC_OBJECT, ND_DRAW, ND_VERTEX_GROUP, OPERATOR_FINISHED, vgroup_duplicate(), and WM_event_add_notifier().
Referenced by OBJECT_OT_vertex_group_copy().
|
static |
Definition at line 3844 of file object_vgroup.c.
References BKE_object_supports_vertex_groups(), BKE_reportf(), C, CTX_DATA_BEGIN, CTX_DATA_END, CTX_data_main(), DEG_id_tag_update(), DEG_relations_tag_update(), ED_object_context(), ED_vgroup_array_copy(), Object::id, ID_RECALC_GEOMETRY, NC_GEOM, ND_VERTEX_GROUP, OPERATOR_FINISHED, wmOperator::reports, RPT_ERROR, and WM_event_add_notifier().
Referenced by OBJECT_OT_vertex_group_copy_to_selected().
|
static |
Definition at line 3086 of file object_vgroup.c.
References C, Object::data, DEG_id_tag_update(), ED_object_context(), ID_RECALC_COPY_ON_WRITE, ID_RECALC_SELECT, NC_GEOM, ND_SELECT, OPERATOR_FINISHED, vgroup_select_verts(), and WM_event_add_notifier().
Referenced by OBJECT_OT_vertex_group_deselect().
|
static |
Definition at line 3297 of file object_vgroup.c.
References BKE_report(), C, CTX_data_active_object(), CTX_data_scene(), Object::data, DEG_id_tag_update(), eModifierMode_Realtime, eModifierType_Mirror, ListBase::first, Object::id, ID_RECALC_GEOMETRY, ModifierData::mode, Object::modifiers, NC_GEOM, NC_OBJECT, ND_DATA, ND_DRAW, ModifierData::next, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_float_get(), RPT_ERROR_INVALID_CONTEXT, scene, ModifierData::type, vgroup_fix(), and WM_event_add_notifier().
Referenced by OBJECT_OT_vertex_group_fix().
|
static |
Definition at line 3488 of file object_vgroup.c.
References BKE_object_defgroup_subset_from_select_type(), C, Object::data, DEG_id_tag_update(), ED_object_context(), Object::id, ID_RECALC_GEOMETRY, MEM_freeN, NC_GEOM, NC_OBJECT, ND_DATA, ND_DRAW, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), RNA_enum_get(), vgroup_invert_subset(), and WM_event_add_notifier().
Referenced by OBJECT_OT_vertex_group_invert().
|
static |
Definition at line 3152 of file object_vgroup.c.
References BKE_object_defgroup_subset_from_select_type(), C, Object::data, DEG_id_tag_update(), ED_object_context(), Object::id, ID_RECALC_GEOMETRY, MEM_freeN, NC_GEOM, NC_OBJECT, ND_DATA, ND_DRAW, offset, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), RNA_float_get(), vgroup_levels_subset(), and WM_event_add_notifier().
Referenced by OBJECT_OT_vertex_group_levels().
|
static |
Definition at line 3719 of file object_vgroup.c.
References BKE_object_defgroup_subset_from_select_type(), BKE_reportf(), C, Object::data, DEG_id_tag_update(), Object::id, ID_RECALC_GEOMETRY, MEM_freeN, NC_GEOM, NC_OBJECT, ND_DATA, ND_DRAW, object_array_for_wpaint(), OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_enum_get(), RNA_int_get(), RPT_INFO, RPT_WARNING, vgroup_limit_total_subset(), and WM_event_add_notifier().
Referenced by OBJECT_OT_vertex_group_limit_total().
|
static |
Definition at line 3394 of file object_vgroup.c.
References BLI_sprintfN(), mask(), NULL, params, RNA_enum_get(), TIP_, VGROUP_INVERT, VGROUP_LOCK, VGROUP_MASK_ALL, VGROUP_MASK_INVERT_UNSELECTED, VGROUP_MASK_SELECTED, VGROUP_MASK_UNSELECTED, VGROUP_TOGGLE, and VGROUP_UNLOCK.
Referenced by OBJECT_OT_vertex_group_lock().
|
static |
Definition at line 3380 of file object_vgroup.c.
References C, CTX_data_active_object(), mask(), NC_OBJECT, ND_DRAW, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), vgroup_lock_all(), and WM_event_add_notifier().
Referenced by OBJECT_OT_vertex_group_lock().
Definition at line 2693 of file object_vgroup.c.
References C, CTX_wm_operator_poll_msg_set(), OB_MESH, Object::type, and vertex_group_poll_ex().
Referenced by vertex_group_mesh_with_dvert_poll().
Definition at line 2772 of file object_vgroup.c.
References C, OB_MESH, and vertex_group_vert_poll_ex().
Referenced by OBJECT_OT_vertex_group_smooth().
Definition at line 2707 of file object_vgroup.c.
References C, CTX_wm_operator_poll_msg_set(), Object::data, Mesh::dvert, ED_object_context(), NULL, and vertex_group_mesh_poll_ex().
Referenced by OBJECT_OT_vertex_group_fix().
|
static |
Definition at line 3786 of file object_vgroup.c.
References C, CTX_data_main(), Object::data, DEG_id_tag_update(), DEG_relations_tag_update(), ED_mesh_report_mirror(), ED_object_context(), ED_vgroup_mirror(), Object::id, ID_RECALC_GEOMETRY, NC_GEOM, NC_OBJECT, ND_DATA, ND_DRAW, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), and WM_event_add_notifier().
Referenced by OBJECT_OT_vertex_group_mirror().
|
static |
Definition at line 3241 of file object_vgroup.c.
References BKE_object_defgroup_subset_from_select_type(), C, Object::data, DEG_id_tag_update(), ED_object_context(), Object::id, ID_RECALC_GEOMETRY, MEM_freeN, NC_GEOM, NC_OBJECT, ND_DATA, ND_DRAW, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_boolean_get(), RNA_enum_get(), vgroup_normalize_all(), and WM_event_add_notifier().
Referenced by OBJECT_OT_vertex_group_normalize_all().
|
static |
Definition at line 3202 of file object_vgroup.c.
References C, Object::data, DEG_id_tag_update(), ED_object_context(), Object::id, ID_RECALC_GEOMETRY, NC_GEOM, NC_OBJECT, ND_DATA, ND_DRAW, OPERATOR_CANCELLED, OPERATOR_FINISHED, vgroup_normalize(), and WM_event_add_notifier().
Referenced by OBJECT_OT_vertex_group_normalize().
Definition at line 2687 of file object_vgroup.c.
References C, ED_object_context(), and vertex_group_poll_ex().
Referenced by OBJECT_OT_vertex_group_clean(), OBJECT_OT_vertex_group_copy(), OBJECT_OT_vertex_group_copy_to_selected(), OBJECT_OT_vertex_group_invert(), OBJECT_OT_vertex_group_levels(), OBJECT_OT_vertex_group_limit_total(), OBJECT_OT_vertex_group_lock(), OBJECT_OT_vertex_group_mirror(), OBJECT_OT_vertex_group_move(), OBJECT_OT_vertex_group_normalize(), OBJECT_OT_vertex_group_normalize_all(), OBJECT_OT_vertex_group_quantize(), OBJECT_OT_vertex_group_remove(), OBJECT_OT_vertex_group_set_active(), and OBJECT_OT_vertex_group_sort().
|
static |
Definition at line 2723 of file object_vgroup.c.
References BKE_object_is_in_editmode_vgroup(), C, ED_object_context(), and vertex_group_supported_poll_ex().
Definition at line 2672 of file object_vgroup.c.
References BKE_object_defgroup_list(), BLI_listbase_is_empty(), C, CTX_wm_operator_poll_msg_set(), and vertex_group_supported_poll_ex().
Referenced by vertex_group_mesh_poll_ex(), and vertex_group_poll().
|
static |
Definition at line 3674 of file object_vgroup.c.
References BKE_object_defgroup_subset_from_select_type(), C, Object::data, DEG_id_tag_update(), ED_object_context(), Object::id, ID_RECALC_GEOMETRY, MEM_freeN, NC_GEOM, NC_OBJECT, ND_DATA, ND_DRAW, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), RNA_int_get(), steps, vgroup_quantize_subset(), and WM_event_add_notifier().
Referenced by OBJECT_OT_vertex_group_quantize().
|
static |
Definition at line 2869 of file object_vgroup.c.
References BKE_object_defgroup_remove_all(), BKE_object_defgroup_remove_all_ex(), C, CTX_data_main(), Object::data, DEG_id_tag_update(), DEG_relations_tag_update(), ED_object_context(), Object::id, ID_RECALC_GEOMETRY, NC_GEOM, NC_OBJECT, ND_DRAW, ND_VERTEX_GROUP, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), vgroup_delete_active(), and WM_event_add_notifier().
Referenced by OBJECT_OT_vertex_group_remove().
|
static |
Definition at line 2993 of file object_vgroup.c.
References BKE_object_defgroup_active_index_get(), BKE_object_defgroup_clear(), BKE_object_defgroup_clear_all(), BKE_object_defgroup_list(), BLI_findlink(), C, Object::data, DEG_id_tag_update(), ED_object_context(), Object::id, ID_RECALC_GEOMETRY, NC_GEOM, ND_DATA, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), and WM_event_add_notifier().
Referenced by OBJECT_OT_vertex_group_remove_from().
|
static |
Definition at line 3050 of file object_vgroup.c.
References C, Object::data, DEG_id_tag_update(), ED_object_context(), ID_IS_LINKED, ID_IS_OVERRIDE_LIBRARY, ID_RECALC_COPY_ON_WRITE, ID_RECALC_SELECT, NC_GEOM, ND_SELECT, OPERATOR_CANCELLED, OPERATOR_FINISHED, vgroup_select_verts(), and WM_event_add_notifier().
Referenced by OBJECT_OT_vertex_group_select().
|
static |
Definition at line 3543 of file object_vgroup.c.
References BKE_object_defgroup_subset_from_select_type(), C, Object::data, DEG_id_tag_update(), Object::id, ID_RECALC_GEOMETRY, MEM_freeN, NC_GEOM, NC_OBJECT, ND_DATA, ND_DRAW, object_array_for_wpaint(), OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), RNA_float_get(), RNA_int_get(), vgroup_smooth_subset(), and WM_event_add_notifier().
Referenced by OBJECT_OT_vertex_group_smooth().
|
static |
Definition at line 4137 of file object_vgroup.c.
References BKE_object_defgroup_list_mutable(), BLI_listbase_sort(), C, DEG_id_tag_update(), ED_object_context(), Object::id, ID_RECALC_GEOMETRY, MEM_freeN, NC_GEOM, ND_VERTEX_GROUP, NULL, OPERATOR_CANCELLED, wmOperator::ptr, ret, RNA_enum_get(), SORT_TYPE_BONEHIERARCHY, SORT_TYPE_NAME, vgroup_do_remap(), vgroup_init_remap(), vgroup_sort_bone_hierarchy(), vgroup_sort_name(), and WM_event_add_notifier().
Referenced by OBJECT_OT_vertex_group_sort().
Definition at line 2666 of file object_vgroup.c.
References C, ED_object_context(), and vertex_group_supported_poll_ex().
Referenced by OBJECT_OT_vertex_group_add().
Definition at line 2644 of file object_vgroup.c.
References C, CTX_wm_operator_poll_msg_set(), data, Object::data, ED_operator_object_active_local_editable_ex(), ID_IS_LINKED, ID_IS_OVERRIDE_LIBRARY, NULL, OB_TYPE_SUPPORT_VGROUP, and Object::type.
Referenced by object_array_for_wpaint_filter(), vertex_group_poll_edit(), vertex_group_poll_ex(), vertex_group_supported_poll(), vertex_group_vert_poll_ex(), vertex_group_vert_select_mesh_poll(), and vertex_group_vert_select_unlocked_poll().
Definition at line 89 of file object_vgroup.c.
References Object::data, ME_EDIT_PAINT_FACE_SEL, ME_EDIT_PAINT_VERT_SEL, Object::mode, OB_MESH, OB_MODE_EDIT, and Object::type.
Referenced by vgroup_clean_subset(), vgroup_invert_subset(), vgroup_levels_subset(), vgroup_limit_total_subset(), vgroup_normalize(), vgroup_normalize_all(), vgroup_quantize_subset(), and vgroup_smooth_subset().
|
static |
Definition at line 2735 of file object_vgroup.c.
References BKE_object_is_in_editmode_vgroup(), BKE_object_is_in_wpaint_select_vert(), C, CTX_wm_operator_poll_msg_set(), ED_object_context(), Object::mode, OB_MODE_WEIGHT_PAINT, Object::type, and vertex_group_supported_poll_ex().
Referenced by vertex_group_mesh_vert_poll(), and vertex_group_vert_select_poll().
Definition at line 2813 of file object_vgroup.c.
References BKE_object_is_in_editmode_vgroup(), BKE_object_is_in_wpaint_select_vert(), C, ED_object_context(), OB_MESH, Object::type, and vertex_group_supported_poll_ex().
Referenced by OBJECT_OT_vertex_weight_copy(), OBJECT_OT_vertex_weight_delete(), OBJECT_OT_vertex_weight_normalize_active_vertex(), OBJECT_OT_vertex_weight_paste(), and OBJECT_OT_vertex_weight_set_active().
Definition at line 2777 of file object_vgroup.c.
References C, and vertex_group_vert_poll_ex().
Referenced by OBJECT_OT_vertex_group_assign_new(), OBJECT_OT_vertex_group_deselect(), and OBJECT_OT_vertex_group_select().
Definition at line 2790 of file object_vgroup.c.
References BKE_object_defgroup_active_index_get(), BKE_object_defgroup_list(), BKE_object_is_in_editmode_vgroup(), BKE_object_is_in_wpaint_select_vert(), BLI_findlink(), C, MDeformWeight::def_nr, DG_LOCK_WEIGHT, ED_object_context(), bDeformGroup::flag, and vertex_group_supported_poll_ex().
Referenced by OBJECT_OT_vertex_group_assign(), and OBJECT_OT_vertex_group_remove_from().
|
static |
Definition at line 4535 of file object_vgroup.c.
References C, CTX_data_tool_settings(), DEG_id_tag_update(), ED_object_context(), Object::id, ID_RECALC_GEOMETRY, NC_OBJECT, ND_DRAW, OPERATOR_FINISHED, vgroup_copy_active_to_sel(), ToolSettings::vgroupsubset, and WM_event_add_notifier().
Referenced by OBJECT_OT_vertex_weight_copy().
|
static |
Definition at line 4399 of file object_vgroup.c.
References C, check_vertex_group_accessible(), MDeformWeight::def_nr, DEG_id_tag_update(), ED_object_context(), Object::id, ID_RECALC_GEOMETRY, NC_OBJECT, ND_DRAW, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_int_get(), vgroup_remove_weight(), and WM_event_add_notifier().
Referenced by OBJECT_OT_vertex_weight_delete().
|
static |
Definition at line 4496 of file object_vgroup.c.
References C, CTX_data_tool_settings(), DEG_id_tag_update(), ED_object_context(), Object::id, ID_RECALC_GEOMETRY, NC_OBJECT, ND_DRAW, OPERATOR_CANCELLED, OPERATOR_FINISHED, vgroup_normalize_active_vertex(), ToolSettings::vgroupsubset, and WM_event_add_notifier().
Referenced by OBJECT_OT_vertex_weight_normalize_active_vertex().
|
static |
Definition at line 4348 of file object_vgroup.c.
References C, check_vertex_group_accessible(), MDeformWeight::def_nr, DEG_id_tag_update(), ED_object_context(), Object::id, ID_RECALC_GEOMETRY, NC_OBJECT, ND_DRAW, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_int_get(), vgroup_copy_active_to_sel_single(), and WM_event_add_notifier().
Referenced by OBJECT_OT_vertex_weight_paste().
|
static |
Definition at line 4449 of file object_vgroup.c.
References BKE_object_defgroup_active_index_set(), C, DEG_id_tag_update(), ED_object_context(), Object::id, ID_RECALC_GEOMETRY, NC_OBJECT, ND_DRAW, OPERATOR_FINISHED, wmOperator::ptr, RNA_int_get(), and WM_event_add_notifier().
Referenced by OBJECT_OT_vertex_weight_set_active().
Definition at line 2555 of file object_vgroup.c.
References Freestyle::a, BKE_defvert_ensure_index(), BKE_object_defgroup_active_index_get(), BKE_object_defgroup_data_create(), BKE_object_defgroup_list(), BLI_findlink(), BMEditMesh::bm, BM_data_layer_add(), BM_ELEM_CD_GET_VOID_P, BM_elem_flag_test, BM_ELEM_SELECT, BM_ITER_MESH, BM_VERTS_OF_MESH, CD_MDEFORMVERT, CustomData_get_offset(), CustomData_has_layer(), Object::data, Lattice::def, MDeformWeight::def_nr, Lattice::dvert, Mesh::dvert, Mesh::edit_mesh, BPoint::f1, Lattice::id, Mesh::id, Mesh::mvert, NULL, OB_LATTICE, OB_MESH, Lattice::pntsu, Lattice::pntsv, Lattice::pntsw, SELECT, Mesh::totvert, Object::type, BMesh::vdata, vgroup_edit_lattice(), and MDeformWeight::weight.
Referenced by vertex_group_assign_exec().
|
static |
Definition at line 2187 of file object_vgroup.c.
References Object::data, ED_vgroup_parray_alloc(), ED_vgroup_parray_mirror_assign(), ED_vgroup_parray_remove_zero(), blender::robust_pred::epsilon, ME_SYMMETRY_X, MEM_freeN, NULL, OB_MESH, Object::type, and vertex_group_use_vert_sel().
Referenced by vertex_group_clean_exec().
|
static |
Definition at line 624 of file object_vgroup.c.
References BKE_defvert_copy_subset(), BKE_object_defgroup_subset_from_select_type(), BMEditMesh::bm, BM_ELEM_CD_GET_VOID_P, BM_elem_flag_test, BM_ELEM_SELECT, BM_ITER_MESH_INDEX, BM_VERTS_OF_MESH, CD_MDEFORMVERT, CustomData_get_offset(), Object::data, Mesh::dvert, ED_mesh_active_dvert_get_em(), ED_mesh_active_dvert_get_ob(), ED_mesh_defvert_mirror_update_em(), ED_mesh_defvert_mirror_update_ob(), Mesh::edit_mesh, MVert::flag, ME_SYMMETRY_X, MEM_freeN, Mesh::mvert, SELECT, Mesh::symmetry, Mesh::totvert, and BMesh::vdata.
Referenced by vertex_weight_copy_exec().
Definition at line 4269 of file object_vgroup.c.
References BKE_defvert_copy_index(), BMEditMesh::bm, BM_ELEM_CD_GET_VOID_P, BM_elem_flag_test, BM_ELEM_SELECT, BM_ITER_MESH_INDEX, BM_VERTS_OF_MESH, CD_MDEFORMVERT, CustomData_get_offset(), Object::data, MDeformWeight::def_nr, Mesh::dvert, ED_mesh_active_dvert_get_em(), ED_mesh_active_dvert_get_ob(), ED_mesh_defvert_mirror_update_em(), ED_mesh_defvert_mirror_update_ob(), Mesh::edit_mesh, MVert::flag, ME_SYMMETRY_X, Mesh::mvert, NULL, SELECT, Mesh::symmetry, Mesh::totvert, and BMesh::vdata.
Referenced by vertex_weight_paste_exec().
Definition at line 2543 of file object_vgroup.c.
References BKE_object_defgroup_active_index_get(), BKE_object_defgroup_list(), BKE_object_defgroup_remove(), and BLI_findlink().
Referenced by vertex_group_remove_exec().
|
static |
Definition at line 3995 of file object_vgroup.c.
References BKE_defvert_remap(), BKE_editmesh_from_object(), BKE_object_defgroup_active_index_get(), BKE_object_defgroup_active_index_set(), BKE_object_defgroup_array_get(), BKE_object_defgroup_list(), BKE_object_defgroup_remap_update_users(), BKE_report(), BLI_assert, BLI_findstringindex(), BLI_listbase_count(), BMEditMesh::bm, BM_ELEM_CD_GET_VOID_P, BM_ITER_MESH, BM_VERTS_OF_MESH, CD_MDEFORMVERT, CustomData_get_offset(), Object::data, ListBase::first, bGPdata::layers, LISTBASE_FOREACH, MAX_VGROUP_NAME, MEM_freeN, MEM_mallocN, Object::mode, bDeformGroup::next, NULL, OB_GPENCIL, OB_MESH, OB_MODE_EDIT, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, RPT_ERROR, MDeformVert::totweight, Object::type, and BMesh::vdata.
Referenced by vertex_group_sort_exec(), and vgroup_move_exec().
Definition at line 1089 of file object_vgroup.c.
References BKE_defgroup_duplicate(), BKE_defvert_ensure_index(), BKE_defvert_find_index(), BKE_object_defgroup_active_index_get(), BKE_object_defgroup_active_index_set(), BKE_object_defgroup_list_mutable(), BKE_object_defgroup_unique_name(), BLI_addtail(), BLI_findlink(), BLI_listbase_count(), BLI_snprintf(), BLI_strncpy(), Object::data, ED_vgroup_parray_alloc(), MEM_freeN, bDeformGroup::name, and NULL.
Referenced by vertex_group_copy_exec().
Definition at line 101 of file object_vgroup.c.
References BLI_assert, Object::data, Lattice::editlatt, EditLatt::latt, OB_LATTICE, and Object::type.
Referenced by ED_vgroup_mirror(), get_vert_def_nr(), vgroup_assign_verts(), and vgroup_select_verts().
|
static |
Definition at line 1503 of file object_vgroup.c.
References C, CD_MASK_BAREMESH, MVert::co, count, CTX_data_ensure_evaluated_depsgraph(), Object::data, DEG_get_evaluated_object(), DEG_get_evaluated_scene(), depsgraph, dot_v3v3(), Mesh::editflag, MVert::flag, getSingleCoordinate(), getSurroundingVerts(), ME_EDIT_PAINT_VERT_SEL, MEM_callocN, MEM_freeN, mesh_get_eval_deform(), moveCloserToDistanceFromPlane(), Mesh::mvert, norm(), normalize_v3(), NULL, SELECT, sub_v3_v3v3(), Mesh::totvert, and verts.
Referenced by vertex_group_fix_exec().
|
static |
Definition at line 3979 of file object_vgroup.c.
References BKE_object_defgroup_list(), BLI_listbase_count(), BLI_strncpy(), ListBase::first, MAX_VGROUP_NAME, and MEM_mallocN.
Referenced by vertex_group_sort_exec(), and vgroup_move_exec().
|
static |
Definition at line 1814 of file object_vgroup.c.
References BKE_defvert_ensure_index(), BKE_defvert_find_index(), CLAMP, Object::data, ED_vgroup_parray_alloc(), ED_vgroup_parray_mirror_sync(), ED_vgroup_parray_remove_zero(), ME_SYMMETRY_X, MEM_freeN, NULL, OB_MESH, Object::type, vertex_group_use_vert_sel(), and MDeformWeight::weight.
Referenced by vertex_group_invert_exec().
|
static |
Definition at line 3912 of file object_vgroup.c.
References Freestyle::a, BKE_object_defgroup_list(), C, DummyRNA_NULL_items, ED_object_context(), ListBase::first, EnumPropertyItem::icon, EnumPropertyItem::identifier, bDeformGroup::name, EnumPropertyItem::name, bDeformGroup::next, NULL, RNA_enum_item_add(), RNA_enum_item_end(), and EnumPropertyItem::value.
Referenced by OBJECT_OT_vertex_group_set_active().
|
static |
Definition at line 1555 of file object_vgroup.c.
References BKE_defvert_find_index(), CLAMP, Object::data, ED_vgroup_parray_alloc(), ED_vgroup_parray_mirror_sync(), ME_SYMMETRY_X, MEM_freeN, NULL, OB_MESH, offset, Object::type, vertex_group_use_vert_sel(), and MDeformWeight::weight.
Referenced by vertex_group_levels_exec().
|
static |
Definition at line 2117 of file object_vgroup.c.
References BLI_assert, Object::data, MDeformWeight::def_nr, MDeformVert::dw, ED_vgroup_parray_alloc(), inv_cmp_mdef_vert_weights(), LIKELY, MEM_freeN, MEM_mallocN, MEM_reallocN, NULL, MDeformVert::totweight, and vertex_group_use_vert_sel().
Referenced by vertex_group_limit_total_exec().
Definition at line 1740 of file object_vgroup.c.
References BKE_object_defgroup_list(), DG_LOCK_WEIGHT, ListBase::first, bDeformGroup::flag, mask(), MEM_freeN, bDeformGroup::next, NULL, VGROUP_INVERT, VGROUP_LOCK, VGROUP_MASK_ALL, VGROUP_MASK_INVERT_UNSELECTED, VGROUP_MASK_SELECTED, VGROUP_MASK_UNSELECTED, vgroup_selected_get(), VGROUP_TOGGLE, and VGROUP_UNLOCK.
Referenced by vertex_group_lock_exec().
|
static |
Definition at line 4202 of file object_vgroup.c.
References BKE_object_defgroup_active_index_get(), BKE_object_defgroup_list_mutable(), BLI_findlink(), BLI_listbase_link_move(), C, DEG_id_tag_update(), ED_object_context(), Object::id, ID_RECALC_GEOMETRY, MEM_freeN, NC_GEOM, ND_VERTEX_GROUP, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, ret, RNA_enum_get(), vgroup_do_remap(), vgroup_init_remap(), and WM_event_add_notifier().
Referenced by OBJECT_OT_vertex_group_move().
Definition at line 1140 of file object_vgroup.c.
References BKE_defvert_find_index(), BKE_object_defgroup_active_index_get(), BKE_object_defgroup_list(), BLI_findlink(), CLAMP, Object::data, ED_vgroup_parray_alloc(), max_ff(), MEM_freeN, NULL, vertex_group_use_vert_sel(), and MDeformWeight::weight.
Referenced by vertex_group_normalize_exec().
|
static |
Definition at line 585 of file object_vgroup.c.
References BKE_defvert_normalize_subset(), BKE_object_defgroup_subset_from_select_type(), BMEditMesh::bm, CD_MDEFORMVERT, CustomData_get_offset(), Object::data, ED_mesh_active_dvert_get_em(), ED_mesh_active_dvert_get_ob(), ED_mesh_defvert_mirror_update_em(), ED_mesh_defvert_mirror_update_ob(), Mesh::edit_mesh, ME_SYMMETRY_X, MEM_freeN, NULL, Mesh::symmetry, and BMesh::vdata.
Referenced by vertex_weight_normalize_active_vertex_exec().
|
static |
Definition at line 1602 of file object_vgroup.c.
References BKE_defvert_normalize_lock_map(), BKE_defvert_normalize_lock_single(), BKE_defvert_normalize_subset(), BKE_object_defgroup_active_index_get(), BKE_object_defgroup_list(), BKE_object_defgroup_lock_flags_get(), BKE_report(), BLI_listbase_count(), Object::data, ED_vgroup_parray_alloc(), MEM_freeN, NULL, RPT_ERROR, and vertex_group_use_vert_sel().
Referenced by vertex_group_normalize_all_exec().
|
static |
Definition at line 763 of file object_vgroup.c.
References DummyRNA_NULL_items, ot, wmOperatorType::prop, PROP_ENUM_NO_TRANSLATE, RNA_def_enum(), RNA_def_enum_funcs(), RNA_def_property_flag(), rna_vertex_group_select_itemf(), rna_vertex_group_with_single_itemf(), wmOperatorType::srna, WT_VGROUP_ACTIVE, and WT_VGROUP_ALL.
Referenced by OBJECT_OT_vertex_group_clean(), OBJECT_OT_vertex_group_invert(), OBJECT_OT_vertex_group_levels(), OBJECT_OT_vertex_group_limit_total(), OBJECT_OT_vertex_group_normalize_all(), OBJECT_OT_vertex_group_quantize(), and OBJECT_OT_vertex_group_smooth().
|
static |
Definition at line 2218 of file object_vgroup.c.
References CLAMP, Object::data, MDeformWeight::def_nr, MDeformVert::dw, ED_vgroup_parray_alloc(), ED_vgroup_parray_mirror_assign(), floorf, ME_SYMMETRY_X, MEM_freeN, NULL, OB_MESH, steps, Object::type, vertex_group_use_vert_sel(), and MDeformWeight::weight.
Referenced by vertex_group_quantize_exec().
Definition at line 574 of file object_vgroup.c.
References BKE_defvert_find_index(), BKE_defvert_remove_group(), and ED_mesh_active_dvert_get_only().
Referenced by vertex_weight_delete_exec().
Definition at line 997 of file object_vgroup.c.
References Freestyle::a, Lattice::actbp, BKE_defvert_find_index(), BKE_lattice_active_point_get(), BKE_object_defgroup_active_index_get(), BKE_object_defgroup_list(), BLI_findlink(), BMEditMesh::bm, BM_ELEM_CD_GET_VOID_P, BM_elem_flag_test, BM_ELEM_HIDDEN, BM_ITER_MESH, BM_vert_select_set(), BM_VERTS_OF_MESH, CD_MDEFORMVERT, CustomData_get_offset(), Object::data, Lattice::def, Lattice::dvert, Mesh::dvert, EDBM_deselect_flush(), EDBM_select_flush(), Mesh::edit_mesh, BPoint::f1, LT_ACTBP_NONE, ME_HIDE, Mesh::mvert, OB_LATTICE, OB_MESH, paintvert_flush_flags(), Lattice::pntsu, Lattice::pntsv, Lattice::pntsw, select(), SELECT, Mesh::totvert, Object::type, BMesh::vdata, and vgroup_edit_lattice().
Referenced by vertex_group_deselect_exec(), and vertex_group_select_exec().
Definition at line 1713 of file object_vgroup.c.
References BKE_mesh_from_object(), BKE_object_defgroup_active_index_get(), BKE_object_defgroup_count(), BKE_object_defgroup_mirror_selection(), BKE_object_defgroup_selected_get(), mask(), ME_USING_MIRROR_X_VERTEX_GROUPS, MEM_callocN, Object::mode, and OB_MODE_WEIGHT_PAINT.
Referenced by vgroup_lock_all().
|
static |
Definition at line 1870 of file object_vgroup.c.
References BKE_editmesh_from_object(), BKE_mesh_vert_edge_map_create(), BKE_object_defgroup_subset_to_index_array(), BLI_array_alloca, BLI_assert, BMEditMesh::bm, bm, BM_edge_other_vert(), BM_EDGES_OF_VERT, BM_elem_index_get, BM_ITER_ELEM, BM_mesh_elem_index_ensure(), BM_mesh_elem_table_ensure(), BM_VERT, BM_vert_at_index(), CLAMP, MeshElemMap::count, Object::data, e, ED_vgroup_parray_alloc(), ED_vgroup_parray_from_weight_array(), ED_vgroup_parray_mirror_sync(), ED_vgroup_parray_to_weight_array(), fabsf, if(), MeshElemMap::indices, IS_BM_VERT_READ, IS_BM_VERT_WRITE, IS_ME_VERT_READ, IS_ME_VERT_WRITE, ME_SYMMETRY_X, Mesh::medge, MEM_freeN, MEM_mallocN, Mesh::mvert, NULL, OB_MESH, signum_i(), STACK_DECLARE, STACK_INIT, STACK_PUSH, STACK_SIZE, SWAP, Mesh::totedge, Mesh::totvert, Object::type, v, vertex_group_use_vert_sel(), and WEIGHT_ACCUMULATE.
Referenced by vertex_group_smooth_exec().
Sorts the weight groups according to the bone hierarchy of the associated armature (similar to how bones are ordered in the Outliner)
Definition at line 4107 of file object_vgroup.c.
References BKE_modifiers_is_deformed_by_armature(), BKE_object_defgroup_find_name(), BKE_object_defgroup_list_mutable(), BLI_addhead(), BLI_remlink(), bArmature::bonebase, Bone::childbase, Object::data, ListBase::last, Bone::name, NULL, and Bone::prev.
Referenced by vertex_group_sort_exec().
Definition at line 4095 of file object_vgroup.c.
References BLI_strcasecmp_natural(), and bDeformGroup::name.
Referenced by vertex_group_sort_exec().
|
static |
Definition at line 1682 of file object_vgroup.c.
Referenced by OBJECT_OT_vertex_group_lock().
|
static |
Definition at line 1701 of file object_vgroup.c.
Referenced by OBJECT_OT_vertex_group_lock().
|
static |
Definition at line 678 of file object_vgroup.c.
Referenced by ED_object_vgroup_selection_itemf_helper().