Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/object/object_vgroup.cc
| Show First 20 Lines • Show All 1,914 Lines • ▼ Show 20 Lines | static void vgroup_smooth_subset(Object *ob, | ||||
| const bool use_hide = use_select; | const bool use_hide = use_select; | ||||
| const int expand_sign = signum_i(fac_expand); | const int expand_sign = signum_i(fac_expand); | ||||
| const float expand = fabsf(fac_expand); | const float expand = fabsf(fac_expand); | ||||
| const float iexpand = 1.0f - expand; | const float iexpand = 1.0f - expand; | ||||
| BMEditMesh *em = BKE_editmesh_from_object(ob); | BMEditMesh *em = BKE_editmesh_from_object(ob); | ||||
| BMesh *bm = em ? em->bm : nullptr; | BMesh *bm = em ? em->bm : nullptr; | ||||
| Mesh *me = em ? nullptr : static_cast<Mesh *>(ob->data); | Mesh *me = static_cast<Mesh *>(ob->data); | ||||
| const bke::AttributeAccessor attributes = me->attributes(); | const bke::AttributeAccessor attributes = me->attributes(); | ||||
| const VArray<bool> select_vert = attributes.lookup_or_default<bool>( | const VArray<bool> select_vert = attributes.lookup_or_default<bool>( | ||||
| ".select_vert", ATTR_DOMAIN_POINT, false); | ".select_vert", ATTR_DOMAIN_POINT, false); | ||||
| MeshElemMap *emap; | MeshElemMap *emap; | ||||
| int *emap_mem; | int *emap_mem; | ||||
| ▲ Show 20 Lines • Show All 2,691 Lines • Show Last 20 Lines | |||||