[Bf-blender-cvs] [01bad9e] ui-preview-buttons: Cleanup: const correctness
Campbell Barton
noreply at git.blender.org
Tue Apr 28 19:13:01 CEST 2015
Commit: 01bad9e2f9b7e9d977d258d3652ccf4d2997155f
Author: Campbell Barton
Date: Tue Apr 28 21:17:48 2015 +1000
Branches: ui-preview-buttons
https://developer.blender.org/rB01bad9e2f9b7e9d977d258d3652ccf4d2997155f
Cleanup: const correctness
===================================================================
M source/blender/bmesh/intern/bmesh_interp.c
===================================================================
diff --git a/source/blender/bmesh/intern/bmesh_interp.c b/source/blender/bmesh/intern/bmesh_interp.c
index f8306d2..169af6f 100644
--- a/source/blender/bmesh/intern/bmesh_interp.c
+++ b/source/blender/bmesh/intern/bmesh_interp.c
@@ -459,8 +459,8 @@ static void bm_loop_interp_mdisps(BMesh *bm, BMLoop *l_dst, const BMFace *f_src)
/* if no disps data allocate a new grid, the size of the first grid in f_src. */
if (!md_dst->totdisp) {
- MDisps *md_src = BM_ELEM_CD_GET_VOID_P(BM_FACE_FIRST_LOOP(f_src), cd_loop_mdisp_offset);
-
+ const MDisps *md_src = BM_ELEM_CD_GET_VOID_P(BM_FACE_FIRST_LOOP(f_src), cd_loop_mdisp_offset);
+
md_dst->totdisp = md_src->totdisp;
md_dst->level = md_src->level;
if (md_dst->totdisp) {
More information about the Bf-blender-cvs
mailing list