Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/editmesh.c
| Show First 20 Lines • Show All 83 Lines • ▼ Show 20 Lines | |||||
| * | * | ||||
| * \note this function assumes this is a mesh object, | * \note this function assumes this is a mesh object, | ||||
| * don't add NULL data check here. caller must do that | * don't add NULL data check here. caller must do that | ||||
| */ | */ | ||||
| BMEditMesh *BKE_editmesh_from_object(Object *ob) | BMEditMesh *BKE_editmesh_from_object(Object *ob) | ||||
| { | { | ||||
| BLI_assert(ob->type == OB_MESH); | BLI_assert(ob->type == OB_MESH); | ||||
| /* sanity check */ | /* sanity check */ | ||||
| #if 0 /* disable in mutlti-object edit. */ | |||||
| #ifndef NDEBUG | #ifndef NDEBUG | ||||
| if (((Mesh *)ob->data)->edit_btmesh) { | if (((Mesh *)ob->data)->edit_btmesh) { | ||||
| BLI_assert(((Mesh *)ob->data)->edit_btmesh->ob == ob); | BLI_assert(((Mesh *)ob->data)->edit_btmesh->ob == ob); | ||||
| } | } | ||||
| #endif | #endif | ||||
| #endif | |||||
| return ((Mesh *)ob->data)->edit_btmesh; | return ((Mesh *)ob->data)->edit_btmesh; | ||||
| } | } | ||||
| static void editmesh_tessface_calc_intern(BMEditMesh *em) | static void editmesh_tessface_calc_intern(BMEditMesh *em) | ||||
| { | { | ||||
| /* allocating space before calculating the tessellation */ | /* allocating space before calculating the tessellation */ | ||||
| ▲ Show 20 Lines • Show All 142 Lines • Show Last 20 Lines | |||||