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 4,611 Lines • ▼ Show 20 Lines | void rna_def_view_layer_common(BlenderRNA *brna, StructRNA *srna, const bool scene) | ||||
| } | } | ||||
| else { | else { | ||||
| RNA_def_property_clear_flag(prop, PROP_EDITABLE); | RNA_def_property_clear_flag(prop, PROP_EDITABLE); | ||||
| } | } | ||||
| prop = RNA_def_property(srna, "use_pass_object_index", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_pass_object_index", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "passflag", SCE_PASS_INDEXOB); | RNA_def_property_boolean_sdna(prop, NULL, "passflag", SCE_PASS_INDEXOB); | ||||
| RNA_def_property_ui_text(prop, "Object Index", "Deliver object index pass"); | RNA_def_property_ui_text(prop, "Object Index", "Deliver object index pass"); | ||||
| RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_ID_SCENE); | |||||
| if (scene) { | if (scene) { | ||||
| RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, "rna_ViewLayer_pass_update"); | RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, "rna_ViewLayer_pass_update"); | ||||
| } | } | ||||
| else { | else { | ||||
| RNA_def_property_clear_flag(prop, PROP_EDITABLE); | 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); | ||||
| ▲ Show 20 Lines • Show All 3,699 Lines • Show Last 20 Lines | |||||