~siretart/ubuntu/utopic/blender/libav10

« back to all changes in this revision

Viewing changes to source/blender/editors/mesh/mesh_navmesh.c

  • Committer: Reinhard Tartler
  • Date: 2014-05-31 01:50:05 UTC
  • mfrom: (14.2.27 sid)
  • Revision ID: siretart@tauware.de-20140531015005-ml6druahuj82nsav
mergeĀ fromĀ debian

Show diffs side-by-side

added added

removed removed

Lines of Context:
389
389
                }
390
390
 
391
391
                /* need to rebuild entirely because array size changes */
392
 
                EDBM_index_arrays_init(em, BM_VERT);
 
392
                BM_mesh_elem_table_init(em->bm, BM_VERT);
393
393
 
394
394
                /* create faces */
395
395
                for (j = 0; j < trinum; j++) {
404
404
                                        face[k] = uniquevbase + tri[k] - nv;  /* unique vertex */
405
405
                        }
406
406
                        newFace = BM_face_create_quad_tri(em->bm,
407
 
                                                          EDBM_vert_at_index(em, face[0]),
408
 
                                                          EDBM_vert_at_index(em, face[2]),
409
 
                                                          EDBM_vert_at_index(em, face[1]), NULL,
 
407
                                                          BM_vert_at_index(em->bm, face[0]),
 
408
                                                          BM_vert_at_index(em->bm, face[2]),
 
409
                                                          BM_vert_at_index(em->bm, face[1]), NULL,
410
410
                                                          NULL, false);
411
411
 
412
412
                        /* set navigation polygon idx to the custom layer */