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 3,339 Lines • ▼ Show 20 Lines | void rna_def_view_layer_common(StructRNA *srna, int scene) | ||||
| else RNA_def_property_clear_flag(prop, PROP_EDITABLE); | else RNA_def_property_clear_flag(prop, PROP_EDITABLE); | ||||
| prop = RNA_def_property(srna, "use_pass_material_index", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_pass_material_index", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "passflag", SCE_PASS_INDEXMA); | RNA_def_property_boolean_sdna(prop, NULL, "passflag", SCE_PASS_INDEXMA); | ||||
| RNA_def_property_ui_text(prop, "Material Index", "Deliver material index pass"); | RNA_def_property_ui_text(prop, "Material Index", "Deliver material index pass"); | ||||
| if (scene) RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, "rna_ViewLayer_pass_update"); | if (scene) RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, "rna_ViewLayer_pass_update"); | ||||
| else RNA_def_property_clear_flag(prop, PROP_EDITABLE); | else RNA_def_property_clear_flag(prop, PROP_EDITABLE); | ||||
| prop = RNA_def_property(srna, "use_pass_specular", PROP_BOOLEAN, PROP_NONE); | |||||
| RNA_def_property_boolean_sdna(prop, NULL, "passflag", SCE_PASS_SPEC); | |||||
| RNA_def_property_ui_text(prop, "Specular", "Deliver specular pass"); | |||||
| if (scene) RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, "rna_ViewLayer_pass_update"); | |||||
| else RNA_def_property_clear_flag(prop, PROP_EDITABLE); | |||||
| prop = RNA_def_property(srna, "use_pass_shadow", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_pass_shadow", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "passflag", SCE_PASS_SHADOW); | RNA_def_property_boolean_sdna(prop, NULL, "passflag", SCE_PASS_SHADOW); | ||||
| RNA_def_property_ui_text(prop, "Shadow", "Deliver shadow pass"); | RNA_def_property_ui_text(prop, "Shadow", "Deliver shadow pass"); | ||||
| if (scene) RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, "rna_ViewLayer_pass_update"); | if (scene) RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, "rna_ViewLayer_pass_update"); | ||||
| else RNA_def_property_clear_flag(prop, PROP_EDITABLE); | else RNA_def_property_clear_flag(prop, PROP_EDITABLE); | ||||
| prop = RNA_def_property(srna, "use_pass_ambient_occlusion", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_pass_ambient_occlusion", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "passflag", SCE_PASS_AO); | RNA_def_property_boolean_sdna(prop, NULL, "passflag", SCE_PASS_AO); | ||||
| RNA_def_property_ui_text(prop, "Ambient Occlusion", "Deliver Ambient Occlusion pass"); | RNA_def_property_ui_text(prop, "Ambient Occlusion", "Deliver Ambient Occlusion pass"); | ||||
| if (scene) RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, "rna_ViewLayer_pass_update"); | if (scene) RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, "rna_ViewLayer_pass_update"); | ||||
| else RNA_def_property_clear_flag(prop, PROP_EDITABLE); | else RNA_def_property_clear_flag(prop, PROP_EDITABLE); | ||||
| prop = RNA_def_property(srna, "use_pass_emit", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_pass_emit", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "passflag", SCE_PASS_EMIT); | RNA_def_property_boolean_sdna(prop, NULL, "passflag", SCE_PASS_EMIT); | ||||
| RNA_def_property_ui_text(prop, "Emit", "Deliver emission pass"); | RNA_def_property_ui_text(prop, "Emit", "Deliver emission pass"); | ||||
| if (scene) RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, "rna_ViewLayer_pass_update"); | if (scene) RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, "rna_ViewLayer_pass_update"); | ||||
| else RNA_def_property_clear_flag(prop, PROP_EDITABLE); | else RNA_def_property_clear_flag(prop, PROP_EDITABLE); | ||||
| prop = RNA_def_property(srna, "use_pass_environment", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_pass_environment", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "passflag", SCE_PASS_ENVIRONMENT); | RNA_def_property_boolean_sdna(prop, NULL, "passflag", SCE_PASS_ENVIRONMENT); | ||||
| RNA_def_property_ui_text(prop, "Environment", "Deliver environment lighting pass"); | RNA_def_property_ui_text(prop, "Environment", "Deliver environment lighting pass"); | ||||
| if (scene) RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, "rna_ViewLayer_pass_update"); | if (scene) RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, "rna_ViewLayer_pass_update"); | ||||
| else RNA_def_property_clear_flag(prop, PROP_EDITABLE); | else RNA_def_property_clear_flag(prop, PROP_EDITABLE); | ||||
| prop = RNA_def_property(srna, "use_pass_indirect", PROP_BOOLEAN, PROP_NONE); | |||||
| RNA_def_property_boolean_sdna(prop, NULL, "passflag", SCE_PASS_INDIRECT); | |||||
| RNA_def_property_ui_text(prop, "Indirect", "Deliver indirect lighting pass"); | |||||
| if (scene) RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, "rna_ViewLayer_pass_update"); | |||||
| else RNA_def_property_clear_flag(prop, PROP_EDITABLE); | |||||
| prop = RNA_def_property(srna, "use_pass_diffuse_direct", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_pass_diffuse_direct", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "passflag", SCE_PASS_DIFFUSE_DIRECT); | RNA_def_property_boolean_sdna(prop, NULL, "passflag", SCE_PASS_DIFFUSE_DIRECT); | ||||
| RNA_def_property_ui_text(prop, "Diffuse Direct", "Deliver diffuse direct pass"); | RNA_def_property_ui_text(prop, "Diffuse Direct", "Deliver diffuse direct pass"); | ||||
| if (scene) RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, "rna_ViewLayer_pass_update"); | if (scene) RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, "rna_ViewLayer_pass_update"); | ||||
| else RNA_def_property_clear_flag(prop, PROP_EDITABLE); | else RNA_def_property_clear_flag(prop, PROP_EDITABLE); | ||||
| prop = RNA_def_property(srna, "use_pass_diffuse_indirect", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_pass_diffuse_indirect", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "passflag", SCE_PASS_DIFFUSE_INDIRECT); | RNA_def_property_boolean_sdna(prop, NULL, "passflag", SCE_PASS_DIFFUSE_INDIRECT); | ||||
| ▲ Show 20 Lines • Show All 3,320 Lines • Show Last 20 Lines | |||||