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 432 Lines • ▼ Show 20 Lines | |||||
| #ifdef RNA_RUNTIME | #ifdef RNA_RUNTIME | ||||
| #include "DNA_anim_types.h" | #include "DNA_anim_types.h" | ||||
| #include "DNA_color_types.h" | #include "DNA_color_types.h" | ||||
| #include "DNA_node_types.h" | #include "DNA_node_types.h" | ||||
| #include "DNA_object_types.h" | #include "DNA_object_types.h" | ||||
| #include "DNA_mesh_types.h" | #include "DNA_mesh_types.h" | ||||
| #include "DNA_screen_types.h" | |||||
| #include "DNA_space_types.h" | |||||
| #include "DNA_text_types.h" | #include "DNA_text_types.h" | ||||
| #include "DNA_view3d_types.h" | |||||
| #include "RNA_access.h" | #include "RNA_access.h" | ||||
| #include "MEM_guardedalloc.h" | #include "MEM_guardedalloc.h" | ||||
| #include "BKE_brush.h" | #include "BKE_brush.h" | ||||
| #include "BKE_colortools.h" | #include "BKE_colortools.h" | ||||
| #include "BKE_context.h" | #include "BKE_context.h" | ||||
| Show All 13 Lines | |||||
| #include "BKE_gpencil.h" | #include "BKE_gpencil.h" | ||||
| #include "ED_info.h" | #include "ED_info.h" | ||||
| #include "ED_node.h" | #include "ED_node.h" | ||||
| #include "ED_view3d.h" | #include "ED_view3d.h" | ||||
| #include "ED_mesh.h" | #include "ED_mesh.h" | ||||
| #include "ED_keyframing.h" | #include "ED_keyframing.h" | ||||
| #include "ED_image.h" | #include "ED_image.h" | ||||
| #include "ED_screen.h" | |||||
| #ifdef WITH_FREESTYLE | #ifdef WITH_FREESTYLE | ||||
| #include "FRS_freestyle.h" | #include "FRS_freestyle.h" | ||||
| #endif | #endif | ||||
| /* Grease Pencil Interpolation settings */ | /* Grease Pencil Interpolation settings */ | ||||
| static char *rna_GPencilInterpolateSettings_path(PointerRNA *UNUSED(ptr)) | static char *rna_GPencilInterpolateSettings_path(PointerRNA *UNUSED(ptr)) | ||||
| { | { | ||||
| ▲ Show 20 Lines • Show All 4,547 Lines • ▼ Show 20 Lines | static void rna_def_gpu_ssao_fx(BlenderRNA *brna) | ||||
| 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", PROP_FLOAT, PROP_COLOR_GAMMA); | prop = RNA_def_property(srna, "color", PROP_FLOAT, PROP_COLOR_GAMMA); | ||||
| RNA_def_property_ui_text(prop, "Color", "Color for screen space ambient occlusion effect"); | RNA_def_property_ui_text(prop, "Color", "Color for screen space ambient occlusion effect"); | ||||
| RNA_def_property_range(prop, 0.0f, 1.0f); | RNA_def_property_range(prop, 0.0f, 1.0f); | ||||
| RNA_def_property_update(prop, NC_SPACE | ND_SPACE_VIEW3D, NULL); | RNA_def_property_update(prop, NC_SPACE | ND_SPACE_VIEW3D, NULL); | ||||
| } | } | ||||
| static void rna_def_gpu_lens_dist_fx(BlenderRNA *brna) | |||||
| { | |||||
| StructRNA *srna; | |||||
| srna = RNA_def_struct(brna, "GPULensDistortionSettings", NULL); | |||||
| RNA_def_struct_ui_text(srna, "GPU LENS_DISTORTION", "Settings for GPU based Lens Distortion settings"); | |||||
| RNA_def_struct_ui_icon(srna, ICON_RENDERLAYERS); | |||||
| } | |||||
| static void rna_def_gpu_fx(BlenderRNA *brna) | static void rna_def_gpu_fx(BlenderRNA *brna) | ||||
| { | { | ||||
| StructRNA *srna; | StructRNA *srna; | ||||
| PropertyRNA *prop; | PropertyRNA *prop; | ||||
| rna_def_gpu_ssao_fx(brna); | rna_def_gpu_ssao_fx(brna); | ||||
| rna_def_gpu_dof_fx(brna); | rna_def_gpu_dof_fx(brna); | ||||
| rna_def_gpu_lens_dist_fx(brna); | |||||
| srna = RNA_def_struct(brna, "GPUFXSettings", NULL); | srna = RNA_def_struct(brna, "GPUFXSettings", NULL); | ||||
| RNA_def_struct_ui_text(srna, "GPU FX Settings", "Settings for GPU based compositing"); | RNA_def_struct_ui_text(srna, "GPU FX Settings", "Settings for GPU based compositing"); | ||||
| RNA_def_struct_ui_icon(srna, ICON_RENDERLAYERS); | RNA_def_struct_ui_icon(srna, ICON_RENDERLAYERS); | ||||
| prop = RNA_def_property(srna, "dof", PROP_POINTER, PROP_NONE); | prop = RNA_def_property(srna, "dof", PROP_POINTER, PROP_NONE); | ||||
| RNA_def_property_flag(prop, PROP_NEVER_NULL); | RNA_def_property_flag(prop, PROP_NEVER_NULL); | ||||
| RNA_def_property_struct_type(prop, "GPUDOFSettings"); | RNA_def_property_struct_type(prop, "GPUDOFSettings"); | ||||
| ▲ Show 20 Lines • Show All 2,405 Lines • Show Last 20 Lines | |||||