Cleanup: variable name
authorCampbell Barton <ideasman42@gmail.com>
Thu, 3 Jan 2019 05:02:26 +0000 (16:02 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 3 Jan 2019 05:02:26 +0000 (16:02 +1100)
source/blender/draw/intern/draw_cache_impl_curve.c

index ecdbdcf094fe455052694e6debae868f16da2c96..27babb8b6f755a89be69ae8e13bdbf41003b122b 100644 (file)
@@ -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;