LEFT | RIGHT |
1 /* | 1 /* |
2 * ***** BEGIN GPL LICENSE BLOCK ***** | 2 * ***** BEGIN GPL LICENSE BLOCK ***** |
3 * | 3 * |
4 * This program is free software; you can redistribute it and/or | 4 * This program is free software; you can redistribute it and/or |
5 * modify it under the terms of the GNU General Public License | 5 * modify it under the terms of the GNU General Public License |
6 * as published by the Free Software Foundation; either version 2 | 6 * as published by the Free Software Foundation; either version 2 |
7 * of the License, or (at your option) any later version. | 7 * of the License, or (at your option) any later version. |
8 * | 8 * |
9 * This program is distributed in the hope that it will be useful, | 9 * This program is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 2391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2402 RNA_def_property_boolean_sdna(prop, NULL, "passflag", SCE_PASS_DIFFUSE); | 2402 RNA_def_property_boolean_sdna(prop, NULL, "passflag", SCE_PASS_DIFFUSE); |
2403 RNA_def_property_ui_text(prop, "Diffuse", "Deliver diffuse pass"); | 2403 RNA_def_property_ui_text(prop, "Diffuse", "Deliver diffuse pass"); |
2404 if (scene) RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, "
rna_SceneRenderLayer_pass_update"); | 2404 if (scene) RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, "
rna_SceneRenderLayer_pass_update"); |
2405 else RNA_def_property_clear_flag(prop, PROP_EDITABLE); | 2405 else RNA_def_property_clear_flag(prop, PROP_EDITABLE); |
2406 | 2406 |
2407 prop = RNA_def_property(srna, "use_pass_specular", PROP_BOOLEAN, PROP_NO
NE); | 2407 prop = RNA_def_property(srna, "use_pass_specular", PROP_BOOLEAN, PROP_NO
NE); |
2408 RNA_def_property_boolean_sdna(prop, NULL, "passflag", SCE_PASS_SPEC); | 2408 RNA_def_property_boolean_sdna(prop, NULL, "passflag", SCE_PASS_SPEC); |
2409 RNA_def_property_ui_text(prop, "Specular", "Deliver specular pass"); | 2409 RNA_def_property_ui_text(prop, "Specular", "Deliver specular pass"); |
2410 if (scene) RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, "
rna_SceneRenderLayer_pass_update"); | 2410 if (scene) RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, "
rna_SceneRenderLayer_pass_update"); |
2411 else RNA_def_property_clear_flag(prop, PROP_EDITABLE); | 2411 else RNA_def_property_clear_flag(prop, PROP_EDITABLE); |
2412 | |
2413 prop = RNA_def_property(srna, "use_pass_shadow", PROP_BOOLEAN, PROP_NONE
); | |
2414 RNA_def_property_boolean_sdna(prop, NULL, "passflag", SCE_PASS_SHADOW); | |
2415 RNA_def_property_ui_text(prop, "Shadow", "Deliver shadow pass"); | |
2416 if (scene) RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, "
rna_SceneRenderLayer_pass_update"); | |
2417 else RNA_def_property_clear_flag(prop, PROP_EDITABLE); | |
2418 | |
2419 prop = RNA_def_property(srna, "use_pass_ambient_occlusion", PROP_BOOLEAN
, PROP_NONE); | |
2420 RNA_def_property_boolean_sdna(prop, NULL, "passflag", SCE_PASS_AO); | |
2421 RNA_def_property_ui_text(prop, "AO", "Deliver AO pass"); | |
2422 if (scene) RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, "
rna_SceneRenderLayer_pass_update"); | |
2423 else RNA_def_property_clear_flag(prop, PROP_EDITABLE); | |
2424 ········ | |
2425 prop = RNA_def_property(srna, "use_pass_reflection", PROP_BOOLEAN, PROP_
NONE); | |
2426 {0, NULL, 0, NULL, NULL} | 2412 {0, NULL, 0, NULL, NULL} |
2427 }; | 2413 }; |
2428 | 2414 |
2429 srna = RNA_def_struct(brna, "SceneGameData", NULL); | 2415 srna = RNA_def_struct(brna, "SceneGameData", NULL); |
2430 RNA_def_struct_sdna(srna, "GameData"); | 2416 RNA_def_struct_sdna(srna, "GameData"); |
2431 RNA_def_struct_nested(brna, srna, "Scene"); | 2417 RNA_def_struct_nested(brna, srna, "Scene"); |
LEFT | RIGHT |