[Bf-blender-cvs] [4361691] master: Cleanup: const correctness

Campbell Barton noreply at git.blender.org
Tue Apr 28 15:39:08 CEST 2015


Commit: 43616918f3ee3a6ad867f0175ff973f6809e5047
Author: Campbell Barton
Date:   Tue Apr 28 21:17:48 2015 +1000
Branches: master
https://developer.blender.org/rB43616918f3ee3a6ad867f0175ff973f6809e5047

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