Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_lightprobe.c
| Show First 20 Lines • Show All 182 Lines • ▼ Show 20 Lines | static void rna_def_lightprobe(BlenderRNA *brna) | ||||
| prop = RNA_def_property(srna, "intensity", PROP_FLOAT, PROP_NONE); | prop = RNA_def_property(srna, "intensity", PROP_FLOAT, PROP_NONE); | ||||
| RNA_def_property_float_sdna(prop, NULL, "intensity"); | RNA_def_property_float_sdna(prop, NULL, "intensity"); | ||||
| RNA_def_property_range(prop, 0.0f, FLT_MAX); | RNA_def_property_range(prop, 0.0f, FLT_MAX); | ||||
| RNA_def_property_ui_range(prop, 0.0f, 3.0f, 1.0, 3); | RNA_def_property_ui_range(prop, 0.0f, 3.0f, 1.0, 3); | ||||
| RNA_def_property_ui_text(prop, "Intensity", "Modify the intensity of the lighting captured by this probe"); | RNA_def_property_ui_text(prop, "Intensity", "Modify the intensity of the lighting captured by this probe"); | ||||
| RNA_def_property_update(prop, NC_MATERIAL | ND_SHADING, "rna_LightProbe_recalc"); | RNA_def_property_update(prop, NC_MATERIAL | ND_SHADING, "rna_LightProbe_recalc"); | ||||
| prop = RNA_def_property(srna, "visibility_group", PROP_POINTER, PROP_NONE); | prop = RNA_def_property(srna, "visibility_group", PROP_POINTER, PROP_NONE); | ||||
| RNA_def_property_struct_type(prop, "Collection"); | |||||
| RNA_def_property_pointer_sdna(prop, NULL, "visibility_grp"); | RNA_def_property_pointer_sdna(prop, NULL, "visibility_grp"); | ||||
| RNA_def_property_flag(prop, PROP_EDITABLE); | RNA_def_property_flag(prop, PROP_EDITABLE); | ||||
| RNA_def_property_ui_text(prop, "Visibility Group", "Restrict objects visible for this probe"); | RNA_def_property_ui_text(prop, "Visibility Collection", "Restrict objects visible for this probe"); | ||||
| RNA_def_property_update(prop, NC_MATERIAL | ND_SHADING, "rna_LightProbe_recalc"); | RNA_def_property_update(prop, NC_MATERIAL | ND_SHADING, "rna_LightProbe_recalc"); | ||||
| prop = RNA_def_property(srna, "invert_visibility_group", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "invert_visibility_group", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "flag", LIGHTPROBE_FLAG_INVERT_GROUP); | RNA_def_property_boolean_sdna(prop, NULL, "flag", LIGHTPROBE_FLAG_INVERT_GROUP); | ||||
| RNA_def_property_flag(prop, PROP_EDITABLE); | RNA_def_property_flag(prop, PROP_EDITABLE); | ||||
| RNA_def_property_ui_text(prop, "Invert Group", "Invert visibility group"); | RNA_def_property_ui_text(prop, "Invert Group", "Invert visibility group"); | ||||
| RNA_def_property_update(prop, NC_MATERIAL | ND_SHADING, "rna_LightProbe_recalc"); | RNA_def_property_update(prop, NC_MATERIAL | ND_SHADING, "rna_LightProbe_recalc"); | ||||
| Show All 23 Lines | |||||