Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_nodetree.c
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
| Show First 20 Lines • Show All 4,835 Lines • ▼ Show 20 Lines | static void def_cmp_map_uv(StructRNA *srna) | ||||
| RNA_def_property_range(prop, 0, 100); | RNA_def_property_range(prop, 0, 100); | ||||
| RNA_def_property_ui_text(prop, "Alpha", ""); | RNA_def_property_ui_text(prop, "Alpha", ""); | ||||
| RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_update"); | RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_update"); | ||||
| } | } | ||||
| static void def_cmp_defocus(StructRNA *srna) | static void def_cmp_defocus(StructRNA *srna) | ||||
| { | { | ||||
| PropertyRNA *prop; | PropertyRNA *prop; | ||||
| static EnumPropertyItem bokeh_items[] = { | static EnumPropertyItem bokeh_items[] = { | ||||
| {8, "OCTAGON", 0, "Octagonal", "8 sides"}, | {8, "OCTAGON", 0, "Octagonal", "8 sides"}, | ||||
| {7, "HEPTAGON", 0, "Heptagonal", "7 sides"}, | {7, "HEPTAGON", 0, "Heptagonal", "7 sides"}, | ||||
| {6, "HEXAGON", 0, "Hexagonal", "6 sides"}, | {6, "HEXAGON", 0, "Hexagonal", "6 sides"}, | ||||
| {5, "PENTAGON", 0, "Pentagonal", "5 sides"}, | {5, "PENTAGON", 0, "Pentagonal", "5 sides"}, | ||||
| {4, "SQUARE", 0, "Square", "4 sides"}, | {4, "SQUARE", 0, "Square", "4 sides"}, | ||||
| {3, "TRIANGLE", 0, "Triangular", "3 sides"}, | {3, "TRIANGLE", 0, "Triangular", "3 sides"}, | ||||
| {0, "CIRCLE", 0, "Circular", ""}, | {0, "CIRCLE", 0, "Circular", ""}, | ||||
| {0, NULL, 0, NULL, NULL} | {0, NULL, 0, NULL, NULL} | ||||
| }; | }; | ||||
| prop = RNA_def_property(srna, "scene", PROP_POINTER, PROP_NONE); | |||||
| RNA_def_property_pointer_sdna(prop, NULL, "id"); | |||||
| RNA_def_property_pointer_funcs(prop, NULL, "rna_Node_scene_set", NULL, NULL); | |||||
| RNA_def_property_struct_type(prop, "Scene"); | |||||
| RNA_def_property_flag(prop, PROP_EDITABLE); | |||||
| RNA_def_property_ui_text(prop, "Scene", "Scene from which to select the active camera (render scene if undefined)"); | |||||
| RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_update"); | |||||
| RNA_def_struct_sdna_from(srna, "NodeDefocus", "storage"); | RNA_def_struct_sdna_from(srna, "NodeDefocus", "storage"); | ||||
| prop = RNA_def_property(srna, "bokeh", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "bokeh", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_sdna(prop, NULL, "bktype"); | RNA_def_property_enum_sdna(prop, NULL, "bktype"); | ||||
| RNA_def_property_enum_items(prop, bokeh_items); | RNA_def_property_enum_items(prop, bokeh_items); | ||||
| RNA_def_property_ui_text(prop, "Bokeh Type", ""); | RNA_def_property_ui_text(prop, "Bokeh Type", ""); | ||||
| RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_update"); | RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_update"); | ||||
| prop = RNA_def_property(srna, "angle", PROP_FLOAT, PROP_ANGLE); | prop = RNA_def_property(srna, "angle", PROP_FLOAT, PROP_ANGLE); | ||||
| RNA_def_property_float_sdna(prop, NULL, "rotation"); | RNA_def_property_float_sdna(prop, NULL, "rotation"); | ||||
| ▲ Show 20 Lines • Show All 2,837 Lines • Show Last 20 Lines | |||||