Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_space.c
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
| Show First 20 Lines • Show All 6,109 Lines • ▼ Show 20 Lines | # endif | ||||
| prop = RNA_def_property(srna, "insert_offset_direction", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "insert_offset_direction", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_bitflag_sdna(prop, NULL, "insert_ofs_dir"); | RNA_def_property_enum_bitflag_sdna(prop, NULL, "insert_ofs_dir"); | ||||
| RNA_def_property_enum_items(prop, insert_ofs_dir_items); | RNA_def_property_enum_items(prop, insert_ofs_dir_items); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, "Auto-offset Direction", "Direction to offset nodes on insertion"); | prop, "Auto-offset Direction", "Direction to offset nodes on insertion"); | ||||
| RNA_def_property_update(prop, NC_SPACE | ND_SPACE_NODE_VIEW, NULL); | RNA_def_property_update(prop, NC_SPACE | ND_SPACE_NODE_VIEW, NULL); | ||||
| prop = RNA_def_property(srna, "show_grid", PROP_BOOLEAN, PROP_NONE); | |||||
| RNA_def_property_boolean_negative_sdna(prop, NULL, "flag", SNODE_SHOW_GRID); | |||||
| RNA_def_property_ui_text(prop, "Show Grid", "Show grid in node based views"); | |||||
| RNA_def_property_update(prop, NC_SPACE | ND_SPACE_NODE_VIEW, NULL); | |||||
| RNA_api_space_node(srna); | RNA_api_space_node(srna); | ||||
| } | } | ||||
| static void rna_def_space_clip(BlenderRNA *brna) | static void rna_def_space_clip(BlenderRNA *brna) | ||||
| { | { | ||||
| StructRNA *srna; | StructRNA *srna; | ||||
| PropertyRNA *prop; | PropertyRNA *prop; | ||||
| ▲ Show 20 Lines • Show All 313 Lines • Show Last 20 Lines | |||||