From 902b239aa8de92d559c7b431eaa4321d9dc2b7cf Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 17 Dec 2010 15:37:59 +0000 Subject: no functional changes: SETLOOPER macro assumed a scene was defined called 'sce' used to loop over, now make this an argument, helps to make it clear what's going on. --- source/blender/gpu/intern/gpu_material.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/gpu/intern/gpu_material.c') diff --git a/source/blender/gpu/intern/gpu_material.c b/source/blender/gpu/intern/gpu_material.c index 592cf809a4f..b9da22b36a7 100644 --- a/source/blender/gpu/intern/gpu_material.c +++ b/source/blender/gpu/intern/gpu_material.c @@ -756,10 +756,10 @@ static void material_lights(GPUShadeInput *shi, GPUShadeResult *shr) { Base *base; Object *ob; - Scene *sce; + Scene *sce_iter; GPULamp *lamp; - for(SETLOOPER(shi->gpumat->scene, base)) { + for(SETLOOPER(shi->gpumat->scene, sce_iter, base)) { ob= base->object; if(ob->type==OB_LAMP) { -- cgit v1.2.3