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 3,084 Lines • ▼ Show 20 Lines | case GEO_COMPONENT_TYPE_MESH: { | ||||
| } | } | ||||
| break; | break; | ||||
| } | } | ||||
| case GEO_COMPONENT_TYPE_POINT_CLOUD: { | case GEO_COMPONENT_TYPE_POINT_CLOUD: { | ||||
| sspreadsheet->attribute_domain = ATTR_DOMAIN_POINT; | sspreadsheet->attribute_domain = ATTR_DOMAIN_POINT; | ||||
| break; | break; | ||||
| } | } | ||||
| case GEO_COMPONENT_TYPE_INSTANCES: { | case GEO_COMPONENT_TYPE_INSTANCES: { | ||||
| sspreadsheet->attribute_domain = ATTR_DOMAIN_POINT; | sspreadsheet->attribute_domain = ATTR_DOMAIN_INSTANCE; | ||||
| break; | break; | ||||
| } | } | ||||
| case GEO_COMPONENT_TYPE_VOLUME: { | case GEO_COMPONENT_TYPE_VOLUME: { | ||||
| break; | break; | ||||
| } | } | ||||
| case GEO_COMPONENT_TYPE_CURVE: { | case GEO_COMPONENT_TYPE_CURVE: { | ||||
| if (!ELEM(sspreadsheet->attribute_domain, ATTR_DOMAIN_POINT, ATTR_DOMAIN_CURVE)) { | if (!ELEM(sspreadsheet->attribute_domain, ATTR_DOMAIN_POINT, ATTR_DOMAIN_CURVE)) { | ||||
| sspreadsheet->attribute_domain = ATTR_DOMAIN_POINT; | sspreadsheet->attribute_domain = ATTR_DOMAIN_POINT; | ||||
| ▲ Show 20 Lines • Show All 4,003 Lines • ▼ Show 20 Lines | static void rna_def_space_node_overlay(BlenderRNA *brna) | ||||
| RNA_def_property_update(prop, NC_SPACE | ND_SPACE_NODE, NULL); | RNA_def_property_update(prop, NC_SPACE | ND_SPACE_NODE, NULL); | ||||
| prop = RNA_def_property(srna, "show_wire_color", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "show_wire_color", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "overlay.flag", SN_OVERLAY_SHOW_WIRE_COLORS); | RNA_def_property_boolean_sdna(prop, NULL, "overlay.flag", SN_OVERLAY_SHOW_WIRE_COLORS); | ||||
| RNA_def_property_boolean_default(prop, true); | RNA_def_property_boolean_default(prop, true); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, "Show Wire Colors", "Color node links based on their connected sockets"); | prop, "Show Wire Colors", "Color node links based on their connected sockets"); | ||||
| RNA_def_property_update(prop, NC_SPACE | ND_SPACE_NODE, NULL); | RNA_def_property_update(prop, NC_SPACE | ND_SPACE_NODE, NULL); | ||||
| prop = RNA_def_property(srna, "show_timing", PROP_BOOLEAN, PROP_NONE); | |||||
| RNA_def_property_boolean_sdna(prop, NULL, "overlay.flag", SN_OVERLAY_SHOW_TIMINGS); | |||||
| RNA_def_property_boolean_default(prop, false); | |||||
| RNA_def_property_ui_text(prop, "Show Timing", "Display each node's last execution time"); | |||||
| RNA_def_property_update(prop, NC_SPACE | ND_SPACE_NODE, NULL); | |||||
| } | } | ||||
| static void rna_def_space_node(BlenderRNA *brna) | static void rna_def_space_node(BlenderRNA *brna) | ||||
| { | { | ||||
| StructRNA *srna; | StructRNA *srna; | ||||
| PropertyRNA *prop; | PropertyRNA *prop; | ||||
| static const EnumPropertyItem texture_id_type_items[] = { | static const EnumPropertyItem texture_id_type_items[] = { | ||||
| ▲ Show 20 Lines • Show All 855 Lines • Show Last 20 Lines | |||||