Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_lamp.c
| Show First 20 Lines • Show All 496 Lines • ▼ Show 20 Lines | static void rna_def_spot_light(BlenderRNA *brna) | ||||
| RNA_def_property_ui_text(prop, "Show Cone", | RNA_def_property_ui_text(prop, "Show Cone", | ||||
| "Draw transparent cone in 3D view to visualize which objects are contained in it"); | "Draw transparent cone in 3D view to visualize which objects are contained in it"); | ||||
| RNA_def_property_update(prop, 0, "rna_Light_draw_update"); | RNA_def_property_update(prop, 0, "rna_Light_draw_update"); | ||||
| } | } | ||||
| static void rna_def_sun_light(BlenderRNA *brna) | static void rna_def_sun_light(BlenderRNA *brna) | ||||
| { | { | ||||
| StructRNA *srna; | StructRNA *srna; | ||||
| PropertyRNA *prop; | |||||
| srna = RNA_def_struct(brna, "SunLight", "Light"); | srna = RNA_def_struct(brna, "SunLight", "Light"); | ||||
| RNA_def_struct_sdna(srna, "Lamp"); | RNA_def_struct_sdna(srna, "Lamp"); | ||||
| RNA_def_struct_ui_text(srna, "Sun Light", "Constant direction parallel ray Light"); | RNA_def_struct_ui_text(srna, "Sun Light", "Constant direction parallel ray Light"); | ||||
| RNA_def_struct_ui_icon(srna, ICON_LIGHT_SUN); | RNA_def_struct_ui_icon(srna, ICON_LIGHT_SUN); | ||||
| prop = RNA_def_property(srna, "sun_angle", PROP_FLOAT, PROP_ANGLE); | |||||
| RNA_def_property_float_sdna(prop, NULL, "sunangle"); | |||||
| RNA_def_property_float_default(prop, DEG2RADF(0.526f)); | |||||
| RNA_def_property_range(prop, DEG2RADF(1.0f), DEG2RADF(90.0f)); | |||||
| RNA_def_property_ui_text(prop, "Sun Angle", "The angular diameter of the sun as seen from the Earth"); | |||||
| RNA_def_property_update(prop, 0, "rna_Light_draw_update"); | |||||
| rna_def_light_shadow(srna, 1); | rna_def_light_shadow(srna, 1); | ||||
| } | } | ||||
| static void rna_def_hemi_light(BlenderRNA *brna) | static void rna_def_hemi_light(BlenderRNA *brna) | ||||
| { | { | ||||
| StructRNA *srna; | StructRNA *srna; | ||||
| srna = RNA_def_struct(brna, "HemiLight", "Light"); | srna = RNA_def_struct(brna, "HemiLight", "Light"); | ||||
| Show All 16 Lines | |||||