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,102 Lines • ▼ Show 20 Lines | static void rna_def_space_view3d_shading(BlenderRNA *brna) | ||||
| RNA_def_property_float_sdna(prop, NULL, "studiolight_rot_z"); | RNA_def_property_float_sdna(prop, NULL, "studiolight_rot_z"); | ||||
| RNA_def_property_float_default(prop, 0.0); | RNA_def_property_float_default(prop, 0.0); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, "Studiolight Rotation", "Rotation of the studiolight around the Z-Axis"); | prop, "Studiolight Rotation", "Rotation of the studiolight around the Z-Axis"); | ||||
| RNA_def_property_range(prop, -M_PI, M_PI); | RNA_def_property_range(prop, -M_PI, M_PI); | ||||
| 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_intensity", PROP_FLOAT, PROP_FACTOR); | |||||
| RNA_def_property_float_sdna(prop, NULL, "studiolight_intensity"); | |||||
| RNA_def_property_float_default(prop, 1.0f); | |||||
| RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); | |||||
| RNA_def_property_ui_text(prop, "Strength", "Strength of the studiolight"); | |||||
| RNA_def_property_range(prop, 0.0f, FLT_MAX); | |||||
| RNA_def_property_ui_range(prop, 0.0f, 2.0f, 1, 3); | |||||
| RNA_def_property_update(prop, NC_SPACE | ND_SPACE_VIEW3D, NULL); | |||||
| 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_float_default(prop, 0.0); | RNA_def_property_float_default(prop, 0.0f); | ||||
| 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, "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"); | ||||
| ▲ Show 20 Lines • Show All 3,176 Lines • Show Last 20 Lines | |||||