LEFT | RIGHT |
1 /* | 1 /* |
2 * ***** BEGIN GPL LICENSE BLOCK ***** | 2 * ***** BEGIN GPL LICENSE BLOCK ***** |
3 * | 3 * |
4 * This program is free software; you can redistribute it and/or | 4 * This program is free software; you can redistribute it and/or |
5 * modify it under the terms of the GNU General Public License | 5 * modify it under the terms of the GNU General Public License |
6 * as published by the Free Software Foundation; either version 2 | 6 * as published by the Free Software Foundation; either version 2 |
7 * of the License, or (at your option) any later version. | 7 * of the License, or (at your option) any later version. |
8 * | 8 * |
9 * This program is distributed in the hope that it will be useful, | 9 * This program is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 965 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
976 if (orcodm) { | 976 if (orcodm) { |
977 orco = MEM_callocN(sizeof(float) * 3 * totvert, "dm orco"); | 977 orco = MEM_callocN(sizeof(float) * 3 * totvert, "dm orco"); |
978 free = 1; | 978 free = 1; |
979 | 979 |
980 if (orcodm->getNumVerts(orcodm) == totvert) | 980 if (orcodm->getNumVerts(orcodm) == totvert) |
981 orcodm->getVertCos(orcodm, orco); | 981 orcodm->getVertCos(orcodm, orco); |
982 else | 982 else |
983 dm->getVertCos(dm, orco); | 983 dm->getVertCos(dm, orco); |
984 } | 984 } |
985 else | 985 else |
986 orco = get_orco_coords_dm(ob, em, layer, &free); | |
987 | |
988 EditFace *efa; | 986 EditFace *efa; |
989 DMVertexAttribs attribs= {{{0}}}; | 987 DMVertexAttribs attribs= {{{0}}}; |
990 GPUVertexAttribs gattribs; | 988 GPUVertexAttribs gattribs; |
991 MTFace *tf; | 989 MTFace *tf; |
992 int transp, new_transp, orig_transp, tfoffset; | 990 int transp, new_transp, orig_transp, tfoffset; |
993 int i, b, matnr, new_matnr, dodraw, layer; | 991 int i, b, matnr, new_matnr, dodraw, layer; |
994 | 992 |
995 dodraw = 0; | 993 dodraw = 0; |
996 matnr = -1; | 994 matnr = -1; |
997 | 995 |
998 transp = GPU_get_material_blend_mode(); | 996 transp = GPU_get_material_blend_mode(); |
999 orig_transp = transp; | 997 orig_transp = transp; |
1000 layer = CustomData_get_layer_index(&em->fdata, CD_MTFACE); | 998 layer = CustomData_get_layer_index(&em->fdata, CD_MTFACE); |
1001 tfoffset = (layer == -1)? -1: em->fdata.layers[layer].offset; | 999 tfoffset = (layer == -1)? -1: em->fdata.layers[layer].offset; |
1002 | 1000 |
LEFT | RIGHT |