Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_lightprobe.c
| Show First 20 Lines • Show All 68 Lines • ▼ Show 20 Lines | |||||
| static void rna_def_lightprobe(BlenderRNA *brna) | static void rna_def_lightprobe(BlenderRNA *brna) | ||||
| { | { | ||||
| StructRNA *srna; | StructRNA *srna; | ||||
| PropertyRNA *prop; | PropertyRNA *prop; | ||||
| srna = RNA_def_struct(brna, "LightProbe", "ID"); | srna = RNA_def_struct(brna, "LightProbe", "ID"); | ||||
| RNA_def_struct_ui_text(srna, "LightProbe", "Light Probe data-block for lighting capture objects"); | RNA_def_struct_ui_text(srna, "LightProbe", "Light Probe data-block for lighting capture objects"); | ||||
| RNA_def_struct_ui_icon(srna, ICON_LIGHTPROBE_CUBEMAP); | RNA_def_struct_ui_icon(srna, ICON_OUTLINER_OB_LIGHTPROBE); | ||||
| prop = RNA_def_property(srna, "type", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "type", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_items(prop, lightprobe_type_items); | RNA_def_property_enum_items(prop, lightprobe_type_items); | ||||
| RNA_def_property_ui_text(prop, "Type", "Type of light probe"); | RNA_def_property_ui_text(prop, "Type", "Type of light probe"); | ||||
| RNA_def_property_clear_flag(prop, PROP_EDITABLE); | RNA_def_property_clear_flag(prop, PROP_EDITABLE); | ||||
| prop = RNA_def_property(srna, "clip_start", PROP_FLOAT, PROP_DISTANCE); | prop = RNA_def_property(srna, "clip_start", PROP_FLOAT, PROP_DISTANCE); | ||||
| RNA_def_property_float_sdna(prop, NULL, "clipsta"); | RNA_def_property_float_sdna(prop, NULL, "clipsta"); | ||||
| ▲ Show 20 Lines • Show All 146 Lines • Show Last 20 Lines | |||||