Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_modifier.c
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
| Show First 20 Lines • Show All 6,326 Lines • ▼ Show 20 Lines | static void rna_def_modifier_weld(BlenderRNA *brna) | ||||
| prop = RNA_def_property(srna, "merge_threshold", PROP_FLOAT, PROP_DISTANCE); | prop = RNA_def_property(srna, "merge_threshold", PROP_FLOAT, PROP_DISTANCE); | ||||
| RNA_def_property_float_sdna(prop, NULL, "merge_dist"); | RNA_def_property_float_sdna(prop, NULL, "merge_dist"); | ||||
| RNA_def_property_range(prop, 0, FLT_MAX); | RNA_def_property_range(prop, 0, FLT_MAX); | ||||
| RNA_def_property_ui_range(prop, 0, 1, 0.001, 6); | RNA_def_property_ui_range(prop, 0, 1, 0.001, 6); | ||||
| RNA_def_property_ui_text(prop, "Merge Distance", "Limit below which to merge vertices"); | RNA_def_property_ui_text(prop, "Merge Distance", "Limit below which to merge vertices"); | ||||
| RNA_def_property_update(prop, 0, "rna_Modifier_update"); | RNA_def_property_update(prop, 0, "rna_Modifier_update"); | ||||
| prop = RNA_def_property(srna, "max_interactions", PROP_INT, PROP_UNSIGNED); | |||||
| RNA_def_property_int_sdna(prop, NULL, "max_interactions"); | |||||
| RNA_def_property_ui_text( | |||||
| prop, | |||||
| "Duplicate Limit", | |||||
| "For a better performance, limits the number of elements found per vertex. " | |||||
| "(0 makes it infinite)"); | |||||
| RNA_def_property_update(prop, 0, "rna_Modifier_update"); | |||||
| prop = RNA_def_property(srna, "vertex_group", PROP_STRING, PROP_NONE); | prop = RNA_def_property(srna, "vertex_group", PROP_STRING, PROP_NONE); | ||||
| RNA_def_property_string_sdna(prop, NULL, "defgrp_name"); | RNA_def_property_string_sdna(prop, NULL, "defgrp_name"); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, "Vertex Group", "Vertex group name for selecting the affected areas"); | prop, "Vertex Group", "Vertex group name for selecting the affected areas"); | ||||
| RNA_def_property_string_funcs(prop, NULL, NULL, "rna_WeldModifier_defgrp_name_set"); | RNA_def_property_string_funcs(prop, NULL, NULL, "rna_WeldModifier_defgrp_name_set"); | ||||
| RNA_def_property_update(prop, 0, "rna_Modifier_update"); | RNA_def_property_update(prop, 0, "rna_Modifier_update"); | ||||
| prop = RNA_def_property(srna, "invert_vertex_group", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "invert_vertex_group", PROP_BOOLEAN, PROP_NONE); | ||||
| ▲ Show 20 Lines • Show All 876 Lines • Show Last 20 Lines | |||||