diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-01-11 05:41:27 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-01-11 05:41:27 +0400 |
commit | 0c3e570868b86c26905c7f731e61f47a9e99deca (patch) | |
tree | 0c74dc7157ebcab185833a1fffe4b74a584486e8 /source/blender/blenkernel/intern/editderivedmesh.c | |
parent | 3fc0d2691ddc1a0c8b1a808791924561b306cec1 (diff) |
remove CustomData_get_active_offset(), use CustomData_get_offset to return the active layer, matching CustomData_get()
Diffstat (limited to 'source/blender/blenkernel/intern/editderivedmesh.c')
-rw-r--r-- | source/blender/blenkernel/intern/editderivedmesh.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blenkernel/intern/editderivedmesh.c b/source/blender/blenkernel/intern/editderivedmesh.c index 5bf0f503a51..91577320a9c 100644 --- a/source/blender/blenkernel/intern/editderivedmesh.c +++ b/source/blender/blenkernel/intern/editderivedmesh.c @@ -810,9 +810,9 @@ static void emDM_drawFacesTex_common(DerivedMesh *dm, BMFace *efa; MLoopUV *luv[3], dummyluv = {{0}}; MLoopCol *lcol[3] = {NULL} /* , dummylcol = {0} */; - const int cd_loop_uv_offset = CustomData_get_active_offset(&bm->ldata, CD_MLOOPUV); - const int cd_loop_color_offset = CustomData_get_active_offset(&bm->ldata, CD_MLOOPCOL); - const int cd_poly_tex_offset = CustomData_get_active_offset(&bm->pdata, CD_MTEXPOLY); + const int cd_loop_uv_offset = CustomData_get_offset(&bm->ldata, CD_MLOOPUV); + const int cd_loop_color_offset = CustomData_get_offset(&bm->ldata, CD_MLOOPCOL); + const int cd_poly_tex_offset = CustomData_get_offset(&bm->pdata, CD_MTEXPOLY); bool has_uv = (cd_loop_uv_offset != -1); bool has_vcol = (cd_loop_color_offset != -1); int i; |