Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-02-13 08:52:41 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-02-13 08:52:41 +0400
commitcf0aeddfc90c5cfd2b7ca7579d4fbc972a51ac36 (patch)
treed4d591298ea947166d0936fce2c8dd2a2c69f17a /source/blender/editors/mesh/mesh_navmesh.c
parent0f5e7e8518ccd7c34ec37dcbf37a50452b63bc2f (diff)
marked navmesh as BMESH_TODO, mixed mface/mpoly functions were being used for navmesh too, now editing funcs use polygons only.
Diffstat (limited to 'source/blender/editors/mesh/mesh_navmesh.c')
-rw-r--r--source/blender/editors/mesh/mesh_navmesh.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/mesh/mesh_navmesh.c b/source/blender/editors/mesh/mesh_navmesh.c
index 9593e54acd7..99947cb9ae2 100644
--- a/source/blender/editors/mesh/mesh_navmesh.c
+++ b/source/blender/editors/mesh/mesh_navmesh.c
@@ -618,7 +618,7 @@ static int navmesh_obmode_data_poll(bContext *C)
Object *ob = ED_object_active_context(C);
if (ob && (ob->mode == OB_MODE_OBJECT) && (ob->type == OB_MESH)) {
Mesh *me= ob->data;
- return CustomData_has_layer(&me->fdata, CD_RECAST);
+ return CustomData_has_layer(&me->pdata, CD_RECAST);
}
return FALSE;
}
@@ -637,7 +637,7 @@ static int navmesh_reset_exec(bContext *C, wmOperator *UNUSED(op))
Object *ob = ED_object_active_context(C);
Mesh *me= ob->data;
- CustomData_free_layers(&me->fdata, CD_RECAST, me->totface);
+ CustomData_free_layers(&me->pdata, CD_RECAST, me->totpoly);
BKE_mesh_ensure_navmesh(me);
@@ -667,7 +667,7 @@ static int navmesh_clear_exec(bContext *C, wmOperator *UNUSED(op))
Object *ob = ED_object_active_context(C);
Mesh *me= ob->data;
- CustomData_free_layers(&me->fdata, CD_RECAST, me->totface);
+ CustomData_free_layers(&me->pdata, CD_RECAST, me->totpoly);
DAG_id_tag_update(&me->id, OB_RECALC_DATA);
WM_event_add_notifier(C, NC_GEOM|ND_DATA, &me->id);