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 368 Lines • ▼ Show 20 Lines | static const EnumPropertyItem rna_enum_shading_color_type_items[] = { | ||||
| {0, NULL, 0, NULL, NULL}, | {0, NULL, 0, NULL, NULL}, | ||||
| }; | }; | ||||
| static const EnumPropertyItem rna_enum_studio_light_items[] = { | static const EnumPropertyItem rna_enum_studio_light_items[] = { | ||||
| {0, "DEFAULT", 0, "Default", ""}, | {0, "DEFAULT", 0, "Default", ""}, | ||||
| {0, NULL, 0, NULL, NULL}, | {0, NULL, 0, NULL, NULL}, | ||||
| }; | }; | ||||
| const EnumPropertyItem rna_enum_view3dshading_render_pass_type_items[] = { | |||||
| {SCE_PASS_COMBINED, "COMBINED", 0, "Combined", ""}, | |||||
| /* {SCE_PASS_Z, "Z", 0, "Z", ""},*/ | |||||
| {SCE_PASS_AO, "AO", 0, "Ambient Occlusion", ""}, | |||||
| {SCE_PASS_NORMAL, "NORMAL", 0, "Normal", ""}, | |||||
| {SCE_PASS_MIST, "MIST", 0, "Mist", ""}, | |||||
| {SCE_PASS_SUBSURFACE_DIRECT, "SUBSURFACE_DIRECT", 0, "Subsurface Direct", ""}, | |||||
| /* {SCE_PASS_SUBSURFACE_INDIRECT, "SUBSURFACE_INDIRECT", 0, "Subsurface Indirect", ""}, */ | |||||
| {SCE_PASS_SUBSURFACE_COLOR, "SUBSURFACE_COLOR", 0, "Subsurface Color", ""}, | |||||
| {0, NULL, 0, NULL, NULL}, | |||||
| }; | |||||
| const EnumPropertyItem rna_enum_clip_editor_mode_items[] = { | const EnumPropertyItem rna_enum_clip_editor_mode_items[] = { | ||||
| {SC_MODE_TRACKING, "TRACKING", ICON_ANIM_DATA, "Tracking", "Show tracking and solving tools"}, | {SC_MODE_TRACKING, "TRACKING", ICON_ANIM_DATA, "Tracking", "Show tracking and solving tools"}, | ||||
| {SC_MODE_MASKEDIT, "MASK", ICON_MOD_MASK, "Mask", "Show mask editing tools"}, | {SC_MODE_MASKEDIT, "MASK", ICON_MOD_MASK, "Mask", "Show mask editing tools"}, | ||||
| {0, NULL, 0, NULL, NULL}, | {0, NULL, 0, NULL, NULL}, | ||||
| }; | }; | ||||
| /* Actually populated dynamically trough a function, | /* Actually populated dynamically trough a function, | ||||
| * but helps for context-less access (e.g. doc, i18n...). */ | * but helps for context-less access (e.g. doc, i18n...). */ | ||||
| ▲ Show 20 Lines • Show All 2,890 Lines • ▼ Show 20 Lines | static void rna_def_space_view3d_shading(BlenderRNA *brna) | ||||
| prop = RNA_def_property(srna, "shadow_intensity", PROP_FLOAT, PROP_FACTOR); | prop = RNA_def_property(srna, "shadow_intensity", PROP_FLOAT, PROP_FACTOR); | ||||
| RNA_def_property_float_sdna(prop, NULL, "shadow_intensity"); | RNA_def_property_float_sdna(prop, NULL, "shadow_intensity"); | ||||
| RNA_def_property_ui_text(prop, "Shadow Intensity", "Darkness of shadows"); | RNA_def_property_ui_text(prop, "Shadow Intensity", "Darkness of shadows"); | ||||
| 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, "render_pass", PROP_ENUM, PROP_NONE); | |||||
| RNA_def_property_enum_sdna(prop, NULL, "render_pass"); | |||||
| RNA_def_property_enum_items(prop, rna_enum_view3dshading_render_pass_type_items); | |||||
| RNA_def_property_ui_text(prop, "Render Pass", "Render Pass to show in the viewport"); | |||||
| RNA_def_property_update(prop, NC_SPACE | ND_SPACE_VIEW3D, NULL); | |||||
| } | } | ||||
| static void rna_def_space_view3d_overlay(BlenderRNA *brna) | static void rna_def_space_view3d_overlay(BlenderRNA *brna) | ||||
| { | { | ||||
| StructRNA *srna; | StructRNA *srna; | ||||
| PropertyRNA *prop; | PropertyRNA *prop; | ||||
| srna = RNA_def_struct(brna, "View3DOverlay", NULL); | srna = RNA_def_struct(brna, "View3DOverlay", NULL); | ||||
| ▲ Show 20 Lines • Show All 3,046 Lines • Show Last 20 Lines | |||||