Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_nodetree.c
| Context not available. | |||||
| RNA_def_property_update(prop, 0, "rna_Node_update"); | RNA_def_property_update(prop, 0, "rna_Node_update"); | ||||
| } | } | ||||
| static void def_sh_tex_voronoi_crackle(StructRNA *srna) | |||||
| { | |||||
| static EnumPropertyItem prop_metric_items[] = { | |||||
| {SHD_VORONOI_CRACKLE_DISTANCE_SQUARED, "DISTANCE_SQUARED", 0, "Distance Squared", "Distance Squared"}, | |||||
| {SHD_VORONOI_CRACKLE_DISTANCE, "DISTANCE", 0, "Distance", "Distance"}, | |||||
| {SHD_VORONOI_CRACKLE_MANHATTAN, "MANHATTAN", 0, "Manhattan", "Cityblock (Taxicab)"}, | |||||
| {SHD_VORONOI_CRACKLE_CHEBYCHEV, "CHEBYCHEV", 0, "Chebychev", "Chebychev"}, | |||||
| {0, NULL, 0, NULL, NULL} | |||||
| }; | |||||
| PropertyRNA *prop; | |||||
| RNA_def_struct_sdna_from(srna, "NodeTexVoronoiCrackle", "storage"); | |||||
| def_sh_tex(srna); | |||||
| prop = RNA_def_property(srna, "metric", PROP_ENUM, PROP_NONE); | |||||
| RNA_def_property_enum_sdna(prop, NULL, "metric"); | |||||
| RNA_def_property_enum_items(prop, prop_metric_items); | |||||
| RNA_def_property_ui_text(prop, "Metric", ""); | |||||
| RNA_def_property_update(prop, 0, "rna_Node_update"); | |||||
| } | |||||
| static void def_sh_tex_wave(StructRNA *srna) | static void def_sh_tex_wave(StructRNA *srna) | ||||
| { | { | ||||
| static EnumPropertyItem prop_wave_type_items[] = { | static EnumPropertyItem prop_wave_type_items[] = { | ||||
| Context not available. | |||||