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 1,131 Lines • ▼ Show 20 Lines | static void rna_Scene_all_keyingsets_next(CollectionPropertyIterator *iter) | ||||
| iter->valid = (internal->link != NULL); | iter->valid = (internal->link != NULL); | ||||
| } | } | ||||
| static char *rna_SceneEEVEE_path(PointerRNA *UNUSED(ptr)) | static char *rna_SceneEEVEE_path(PointerRNA *UNUSED(ptr)) | ||||
| { | { | ||||
| return BLI_strdup("eevee"); | return BLI_strdup("eevee"); | ||||
| } | } | ||||
| static char *rna_SceneGpencil_path(PointerRNA *UNUSED(ptr)) | |||||
| { | |||||
| return BLI_strdup("grease_pencil_settings"); | |||||
| } | |||||
| static int rna_RenderSettings_stereoViews_skip(CollectionPropertyIterator *iter, | static int rna_RenderSettings_stereoViews_skip(CollectionPropertyIterator *iter, | ||||
| void *UNUSED(data)) | void *UNUSED(data)) | ||||
| { | { | ||||
| ListBaseIterator *internal = &iter->internal.listbase; | ListBaseIterator *internal = &iter->internal.listbase; | ||||
| SceneRenderView *srv = (SceneRenderView *)internal->link; | SceneRenderView *srv = (SceneRenderView *)internal->link; | ||||
| if ((STREQ(srv->name, STEREO_LEFT_NAME)) || (STREQ(srv->name, STEREO_RIGHT_NAME))) { | if ((STREQ(srv->name, STEREO_LEFT_NAME)) || (STREQ(srv->name, STEREO_RIGHT_NAME))) { | ||||
| return 0; | return 0; | ||||
| ▲ Show 20 Lines • Show All 6,041 Lines • ▼ Show 20 Lines | RNA_def_property_ui_text(prop, | ||||
| "Overscan Size", | "Overscan Size", | ||||
| "Percentage of render size to add as overscan to the " | "Percentage of render size to add as overscan to the " | ||||
| "internal render buffers"); | "internal render buffers"); | ||||
| RNA_def_property_range(prop, 0.0f, 50.0f); | RNA_def_property_range(prop, 0.0f, 50.0f); | ||||
| RNA_def_property_ui_range(prop, 0.0f, 10.0f, 1, 2); | RNA_def_property_ui_range(prop, 0.0f, 10.0f, 1, 2); | ||||
| RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_LIBRARY); | RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_LIBRARY); | ||||
| } | } | ||||
| static void rna_def_scene_gpencil(BlenderRNA *brna) | |||||
| { | |||||
| StructRNA *srna; | |||||
| PropertyRNA *prop; | |||||
| srna = RNA_def_struct(brna, "SceneGpencil", NULL); | |||||
| RNA_def_struct_path_func(srna, "rna_SceneGpencil_path"); | |||||
| RNA_def_struct_ui_text(srna, "Grease Pencil Render", "Render settings"); | |||||
| prop = RNA_def_property(srna, "antialias_threshold", PROP_FLOAT, PROP_NONE); | |||||
| RNA_def_property_float_sdna(prop, NULL, "smaa_threshold"); | |||||
| RNA_def_property_float_default(prop, 1.0f); | |||||
| RNA_def_property_range(prop, 0.0f, FLT_MAX); | |||||
| RNA_def_property_ui_range(prop, 0.0f, 2.0f, 1, 3); | |||||
| RNA_def_property_ui_text(prop, | |||||
| "Anti-Aliasing Threshold", | |||||
| "Threshold for edge detection algorithm (higher values might overblur " | |||||
| "some part of the image)"); | |||||
| RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_LIBRARY); | |||||
| RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, NULL); | |||||
| } | |||||
| void RNA_def_scene(BlenderRNA *brna) | void RNA_def_scene(BlenderRNA *brna) | ||||
| { | { | ||||
| StructRNA *srna; | StructRNA *srna; | ||||
| PropertyRNA *prop; | PropertyRNA *prop; | ||||
| FunctionRNA *func; | FunctionRNA *func; | ||||
| PropertyRNA *parm; | PropertyRNA *parm; | ||||
| ▲ Show 20 Lines • Show All 457 Lines • ▼ Show 20 Lines | # endif | ||||
| RNA_def_property_struct_type(prop, "SceneDisplay"); | RNA_def_property_struct_type(prop, "SceneDisplay"); | ||||
| RNA_def_property_ui_text(prop, "Scene Display", "Scene display settings for 3d viewport"); | RNA_def_property_ui_text(prop, "Scene Display", "Scene display settings for 3d viewport"); | ||||
| /* EEVEE */ | /* EEVEE */ | ||||
| prop = RNA_def_property(srna, "eevee", PROP_POINTER, PROP_NONE); | prop = RNA_def_property(srna, "eevee", PROP_POINTER, PROP_NONE); | ||||
| RNA_def_property_struct_type(prop, "SceneEEVEE"); | RNA_def_property_struct_type(prop, "SceneEEVEE"); | ||||
| RNA_def_property_ui_text(prop, "EEVEE", "EEVEE settings for the scene"); | RNA_def_property_ui_text(prop, "EEVEE", "EEVEE settings for the scene"); | ||||
| /* Grease Pencil */ | |||||
| prop = RNA_def_property(srna, "grease_pencil_settings", PROP_POINTER, PROP_NONE); | |||||
| RNA_def_property_struct_type(prop, "SceneGpencil"); | |||||
| RNA_def_property_ui_text(prop, "Grease Pencil", "Grease Pencil settings for the scene"); | |||||
| /* Nestled Data */ | /* Nestled Data */ | ||||
| /* *** Non-Animated *** */ | /* *** Non-Animated *** */ | ||||
| RNA_define_animate_sdna(false); | RNA_define_animate_sdna(false); | ||||
| rna_def_tool_settings(brna); | rna_def_tool_settings(brna); | ||||
| rna_def_gpencil_interpolate(brna); | rna_def_gpencil_interpolate(brna); | ||||
| rna_def_unified_paint_settings(brna); | rna_def_unified_paint_settings(brna); | ||||
| rna_def_curve_paint_settings(brna); | rna_def_curve_paint_settings(brna); | ||||
| rna_def_statvis(brna); | rna_def_statvis(brna); | ||||
| rna_def_unit_settings(brna); | rna_def_unit_settings(brna); | ||||
| rna_def_scene_image_format_data(brna); | rna_def_scene_image_format_data(brna); | ||||
| rna_def_transform_orientation(brna); | rna_def_transform_orientation(brna); | ||||
| rna_def_transform_orientation_slot(brna); | rna_def_transform_orientation_slot(brna); | ||||
| rna_def_view3d_cursor(brna); | rna_def_view3d_cursor(brna); | ||||
| rna_def_selected_uv_element(brna); | rna_def_selected_uv_element(brna); | ||||
| rna_def_display_safe_areas(brna); | rna_def_display_safe_areas(brna); | ||||
| rna_def_scene_display(brna); | rna_def_scene_display(brna); | ||||
| rna_def_scene_eevee(brna); | rna_def_scene_eevee(brna); | ||||
| rna_def_view_layer_eevee(brna); | rna_def_view_layer_eevee(brna); | ||||
| rna_def_scene_gpencil(brna); | |||||
| RNA_define_animate_sdna(true); | RNA_define_animate_sdna(true); | ||||
| /* *** Animated *** */ | /* *** Animated *** */ | ||||
| rna_def_scene_render_data(brna); | rna_def_scene_render_data(brna); | ||||
| rna_def_scene_render_view(brna); | rna_def_scene_render_view(brna); | ||||
| /* Scene API */ | /* Scene API */ | ||||
| RNA_api_scene(srna); | RNA_api_scene(srna); | ||||
| } | } | ||||
| #endif | #endif | ||||