Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_scene.c
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
| Show First 20 Lines • Show All 5,514 Lines • ▼ Show 20 Lines | # endif | ||||
| RNA_def_property_ui_text(prop, "Audio Channels", "Audio channel count"); | RNA_def_property_ui_text(prop, "Audio Channels", "Audio channel count"); | ||||
| } | } | ||||
| static void rna_def_scene_render_data(BlenderRNA *brna) | static void rna_def_scene_render_data(BlenderRNA *brna) | ||||
| { | { | ||||
| StructRNA *srna; | StructRNA *srna; | ||||
| PropertyRNA *prop; | PropertyRNA *prop; | ||||
| static const EnumPropertyItem display_mode_items[] = { | |||||
| {R_OUTPUT_SCREEN, | |||||
| "SCREEN", | |||||
| 0, | |||||
| "Full Screen", | |||||
| "Images are rendered in a maximized Image Editor"}, | |||||
| {R_OUTPUT_AREA, "AREA", 0, "Image Editor", "Images are rendered in an Image Editor"}, | |||||
| {R_OUTPUT_WINDOW, "WINDOW", 0, "New Window", "Images are rendered in a new window"}, | |||||
| {R_OUTPUT_NONE, | |||||
| "NONE", | |||||
| 0, | |||||
| "Keep User Interface", | |||||
| "Images are rendered without changing the user interface"}, | |||||
| {0, NULL, 0, NULL, NULL}, | |||||
| }; | |||||
| /* Bake */ | /* Bake */ | ||||
| static const EnumPropertyItem bake_mode_items[] = { | static const EnumPropertyItem bake_mode_items[] = { | ||||
| //{RE_BAKE_AO, "AO", 0, "Ambient Occlusion", "Bake ambient occlusion"}, | //{RE_BAKE_AO, "AO", 0, "Ambient Occlusion", "Bake ambient occlusion"}, | ||||
| {RE_BAKE_NORMALS, "NORMALS", 0, "Normals", "Bake normals"}, | {RE_BAKE_NORMALS, "NORMALS", 0, "Normals", "Bake normals"}, | ||||
| {RE_BAKE_DISPLACEMENT, "DISPLACEMENT", 0, "Displacement", "Bake displacement"}, | {RE_BAKE_DISPLACEMENT, "DISPLACEMENT", 0, "Displacement", "Bake displacement"}, | ||||
| {0, NULL, 0, NULL, NULL}, | {0, NULL, 0, NULL, NULL}, | ||||
| }; | }; | ||||
| ▲ Show 20 Lines • Show All 381 Lines • ▼ Show 20 Lines | # endif | ||||
| prop = RNA_def_property(srna, "use_full_sample", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_full_sample", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "scemode", R_FULL_SAMPLE); | RNA_def_property_boolean_sdna(prop, NULL, "scemode", R_FULL_SAMPLE); | ||||
| RNA_def_property_ui_text(prop, | RNA_def_property_ui_text(prop, | ||||
| "Full Sample", | "Full Sample", | ||||
| "Save for every anti-aliasing sample the entire RenderLayer results " | "Save for every anti-aliasing sample the entire RenderLayer results " | ||||
| "(this solves anti-aliasing issues with compositing)"); | "(this solves anti-aliasing issues with compositing)"); | ||||
| RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, NULL); | RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, NULL); | ||||
| prop = RNA_def_property(srna, "display_mode", PROP_ENUM, PROP_NONE); | |||||
| RNA_def_property_enum_bitflag_sdna(prop, NULL, "displaymode"); | |||||
| RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); | |||||
| RNA_def_property_enum_items(prop, display_mode_items); | |||||
| RNA_def_property_ui_text(prop, "Display", "Select where rendered images will be displayed"); | |||||
| RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, NULL); | |||||
| prop = RNA_def_property(srna, "use_lock_interface", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_lock_interface", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "use_lock_interface", 1); | RNA_def_property_boolean_sdna(prop, NULL, "use_lock_interface", 1); | ||||
| RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); | RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); | ||||
| RNA_def_property_ui_icon(prop, ICON_UNLOCKED, true); | RNA_def_property_ui_icon(prop, ICON_UNLOCKED, true); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, | prop, | ||||
| "Lock Interface", | "Lock Interface", | ||||
| "Lock interface during rendering in favor of giving more memory to the renderer"); | "Lock interface during rendering in favor of giving more memory to the renderer"); | ||||
| ▲ Show 20 Lines • Show All 1,721 Lines • Show Last 20 Lines | |||||