~siretart/ubuntu/utopic/blender/libav10

« back to all changes in this revision

Viewing changes to source/blender/makesrna/intern/rna_lamp.c

  • Committer: Bazaar Package Importer
  • Author(s): Kevin Roy
  • Date: 2011-06-24 11:13:28 UTC
  • mto: (14.1.6 experimental) (1.5.1)
  • mto: This revision was merged to the branch mainline in revision 28.
  • Revision ID: james.westby@ubuntu.com-20110624111328-27ribg6l36edf2ay
Tags: upstream-2.58-svn37702
ImportĀ upstreamĀ versionĀ 2.58-svn37702

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * $Id: rna_lamp.c 36196 2011-04-17 08:38:27Z lmg $
 
2
 * $Id: rna_lamp.c 37078 2011-06-01 16:17:38Z blendix $
3
3
 *
4
4
 * ***** BEGIN GPL LICENSE BLOCK *****
5
5
 *
107
107
        }
108
108
}
109
109
 
110
 
static void rna_Lamp_update(Main *bmain, Scene *scene, PointerRNA *ptr)
 
110
static void rna_Lamp_update(Main *UNUSED(bmain), Scene *scene, PointerRNA *ptr)
111
111
{
112
112
        Lamp *la= ptr->id.data;
113
113
 
118
118
                WM_main_add_notifier(NC_LAMP|ND_LIGHTING, la);
119
119
}
120
120
 
121
 
static void rna_Lamp_draw_update(Main *bmain, Scene *scene, PointerRNA *ptr)
 
121
static void rna_Lamp_draw_update(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *ptr)
122
122
{
123
123
        Lamp *la= ptr->id.data;
124
124
 
126
126
        WM_main_add_notifier(NC_LAMP|ND_LIGHTING_DRAW, la);
127
127
}
128
128
 
129
 
static void rna_Lamp_sky_update(Main *bmain, Scene *scene, PointerRNA *ptr)
 
129
static void rna_Lamp_sky_update(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *ptr)
130
130
{
131
131
        Lamp *la= ptr->id.data;
132
132
 
374
374
        
375
375
        /* textures */
376
376
        rna_def_mtex_common(brna, srna, "rna_Lamp_mtex_begin", "rna_Lamp_active_texture_get",
377
 
                "rna_Lamp_active_texture_set", "LampTextureSlot", "LampTextureSlots", "rna_Lamp_update");
 
377
                "rna_Lamp_active_texture_set", NULL, "LampTextureSlot", "LampTextureSlots", "rna_Lamp_update");
378
378
}
379
379
 
380
380
static void rna_def_lamp_falloff(StructRNA *srna)