Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/object/object_vgroup.c
| Show First 20 Lines • Show All 726 Lines • ▼ Show 20 Lines | if (ob) { | ||||
| } | } | ||||
| } | } | ||||
| if (selection_mask & (1 << WT_VGROUP_ALL)) { | if (selection_mask & (1 << WT_VGROUP_ALL)) { | ||||
| RNA_enum_items_add_value(&item, &totitem, WT_vertex_group_select_item, WT_VGROUP_ALL); | RNA_enum_items_add_value(&item, &totitem, WT_vertex_group_select_item, WT_VGROUP_ALL); | ||||
| } | } | ||||
| /* Set `Deform Bone` as default selection if armature is present. */ | /* Set `Deform Bone` as default selection if armature is present. */ | ||||
| if (ob) { | |||||
| RNA_def_property_enum_default( | RNA_def_property_enum_default( | ||||
| prop, BKE_modifiers_is_deformed_by_armature(ob) ? WT_VGROUP_BONE_DEFORM : WT_VGROUP_ALL); | prop, BKE_modifiers_is_deformed_by_armature(ob) ? WT_VGROUP_BONE_DEFORM : WT_VGROUP_ALL); | ||||
| } | |||||
| RNA_enum_item_end(&item, &totitem); | RNA_enum_item_end(&item, &totitem); | ||||
| *r_free = true; | *r_free = true; | ||||
| return item; | return item; | ||||
| } | } | ||||
| static const EnumPropertyItem *rna_vertex_group_with_single_itemf(bContext *C, | static const EnumPropertyItem *rna_vertex_group_with_single_itemf(bContext *C, | ||||
| ▲ Show 20 Lines • Show All 3,818 Lines • Show Last 20 Lines | |||||