diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-06-12 09:11:37 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-06-12 10:08:10 +0300 |
commit | 5893a3445e8227689c2f10b958a79f5f6ec18d20 (patch) | |
tree | f29699e18e6a3e9ec628216c80cd9351b4c85c09 /source/blender | |
parent | 37b8153afe76cf1c26e2043828f80cbb1a278b4b (diff) |
Use prepend instead of append (avoids list search)
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/mesh/mesh_navmesh.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/mesh/mesh_navmesh.c b/source/blender/editors/mesh/mesh_navmesh.c index 0d9f6f2a0be..1c36826b882 100644 --- a/source/blender/editors/mesh/mesh_navmesh.c +++ b/source/blender/editors/mesh/mesh_navmesh.c @@ -84,7 +84,7 @@ static void createVertsTrisData(bContext *C, LinkNode *obs, for (oblink = obs; oblink; oblink = oblink->next) { ob = (Object *) oblink->link; dm = mesh_create_derived_no_virtual(scene, ob, NULL, CD_MASK_MESH); - BLI_linklist_append(&dms, (void *)dm); + BLI_linklist_prepend(&dms, dm); nverts += dm->getNumVerts(dm); nfaces = dm->getNumTessFaces(dm); @@ -451,7 +451,7 @@ static int navmesh_create_exec(bContext *C, wmOperator *op) } } else { - BLI_linklist_append(&obs, (void *)base->object); + BLI_linklist_prepend(&obs, base->object); } } } |