Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_space.c
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
| Show First 20 Lines • Show All 3,197 Lines • ▼ Show 20 Lines | static void rna_def_space_view3d_shading(BlenderRNA *brna) | ||||
| prop = RNA_def_property(srna, "studiolight_background_alpha", PROP_FLOAT, PROP_FACTOR); | prop = RNA_def_property(srna, "studiolight_background_alpha", PROP_FLOAT, PROP_FACTOR); | ||||
| RNA_def_property_float_sdna(prop, NULL, "studiolight_background"); | RNA_def_property_float_sdna(prop, NULL, "studiolight_background"); | ||||
| RNA_def_property_ui_text(prop, "Background", "Show the studiolight in the background"); | RNA_def_property_ui_text(prop, "Background", "Show the studiolight in the background"); | ||||
| RNA_def_property_range(prop, 0.0f, 1.0f); | RNA_def_property_range(prop, 0.0f, 1.0f); | ||||
| RNA_def_property_ui_range(prop, 0.00f, 1.0f, 1, 3); | RNA_def_property_ui_range(prop, 0.00f, 1.0f, 1, 3); | ||||
| RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); | RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); | ||||
| RNA_def_property_update(prop, NC_SPACE | ND_SPACE_VIEW3D, NULL); | RNA_def_property_update(prop, NC_SPACE | ND_SPACE_VIEW3D, NULL); | ||||
| prop = RNA_def_property(srna, "studiolight_background_blur", PROP_FLOAT, PROP_FACTOR); | |||||
| RNA_def_property_float_sdna(prop, NULL, "studiolight_blur"); | |||||
| RNA_def_property_ui_text(prop, "Blur", "Blur the studiolight in the background"); | |||||
| RNA_def_property_range(prop, 0.0f, 1.0f); | |||||
| RNA_def_property_ui_range(prop, 0.00f, 1.0f, 1, 2); | |||||
| RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); | |||||
| RNA_def_property_update(prop, NC_SPACE | ND_SPACE_VIEW3D, NULL); | |||||
| prop = RNA_def_property(srna, "color_type", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "color_type", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_sdna(prop, NULL, "color_type"); | RNA_def_property_enum_sdna(prop, NULL, "color_type"); | ||||
| RNA_def_property_enum_items(prop, rna_enum_shading_color_type_items); | RNA_def_property_enum_items(prop, rna_enum_shading_color_type_items); | ||||
| RNA_def_property_enum_funcs(prop, NULL, NULL, "rna_View3DShading_color_type_itemf"); | RNA_def_property_enum_funcs(prop, NULL, NULL, "rna_View3DShading_color_type_itemf"); | ||||
| RNA_def_property_ui_text(prop, "Color", "Color Type"); | RNA_def_property_ui_text(prop, "Color", "Color Type"); | ||||
| RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); | RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); | ||||
| RNA_def_property_update(prop, NC_SPACE | ND_SPACE_VIEW3D, NULL); | RNA_def_property_update(prop, NC_SPACE | ND_SPACE_VIEW3D, NULL); | ||||
| ▲ Show 20 Lines • Show All 3,182 Lines • Show Last 20 Lines | |||||