[Bf-blender-cvs] [6cb39720638] master: Cleanup: variable name

Campbell Barton noreply at git.blender.org
Thu Jan 3 06:03:00 CET 2019


Commit: 6cb39720638735e0517c82ffe9698b5cb31060d9
Author: Campbell Barton
Date:   Thu Jan 3 16:02:26 2019 +1100
Branches: master
https://developer.blender.org/rB6cb39720638735e0517c82ffe9698b5cb31060d9

Cleanup: variable name

===================================================================

M	source/blender/draw/intern/draw_cache_impl_curve.c

===================================================================

diff --git a/source/blender/draw/intern/draw_cache_impl_curve.c b/source/blender/draw/intern/draw_cache_impl_curve.c
index ecdbdcf094f..27babb8b6f7 100644
--- a/source/blender/draw/intern/draw_cache_impl_curve.c
+++ b/source/blender/draw/intern/draw_cache_impl_curve.c
@@ -896,8 +896,8 @@ void DRW_curve_batch_cache_create_requested(Object *ob)
 {
 	BLI_assert(ELEM(ob->type, OB_CURVE, OB_SURF, OB_FONT));
 
-	Curve *me = (Curve *)ob->data;
-	CurveBatchCache *cache = curve_batch_cache_get(me);
+	Curve *cu = ob->data;
+	CurveBatchCache *cache = curve_batch_cache_get(cu);
 
 	/* Verify that all surface batches have needed attrib layers. */
 	/* TODO(fclem): We could be a bit smarter here and only do it per material. */
@@ -979,7 +979,7 @@ void DRW_curve_batch_cache_create_requested(Object *ob)
 		DRW_ADD_FLAG_FROM_IBO_REQUEST(mr_flag, cache->surf_per_mat_tris[i], CU_DATATYPE_SURFACE);
 	}
 
-	CurveRenderData *rdata = curve_render_data_create(me, ob->runtime.curve_cache, mr_flag);
+	CurveRenderData *rdata = curve_render_data_create(cu, ob->runtime.curve_cache, mr_flag);
 
 	/* DispLists */
 	ListBase *lb = &rdata->ob_curve_cache->disp;



More information about the Bf-blender-cvs mailing list