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 8,428 Lines • ▼ Show 20 Lines | static void def_geo_triangulate(StructRNA *srna) | ||||
| RNA_def_property_ui_text(prop, "Quad Method", "Method for splitting the quads into triangles"); | RNA_def_property_ui_text(prop, "Quad Method", "Method for splitting the quads into triangles"); | ||||
| 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, "ngon_method", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "ngon_method", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_sdna(prop, NULL, "custom2"); | RNA_def_property_enum_sdna(prop, NULL, "custom2"); | ||||
| RNA_def_property_enum_items(prop, rna_node_geometry_triangulate_ngon_method_items); | RNA_def_property_enum_items(prop, rna_node_geometry_triangulate_ngon_method_items); | ||||
| RNA_def_property_enum_default(prop, GEO_NODE_TRIANGULATE_NGON_BEAUTY); | RNA_def_property_enum_default(prop, GEO_NODE_TRIANGULATE_NGON_BEAUTY); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, "Polygon Method", "Method for splitting the polygons into triangles"); | prop, "N-gon Method", "Method for splitting the n-gons into triangles"); | ||||
| RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_update"); | RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_update"); | ||||
| } | } | ||||
| /** | /** | ||||
| * \note Passing the item functions as arguments here allows reusing the same | * \note Passing the item functions as arguments here allows reusing the same | ||||
| * original list of items from Attribute RNA. | * original list of items from Attribute RNA. | ||||
| */ | */ | ||||
| static void def_geo_attribute_create_common(StructRNA *srna, | static void def_geo_attribute_create_common(StructRNA *srna, | ||||
| ▲ Show 20 Lines • Show All 2,140 Lines • Show Last 20 Lines | |||||