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 2,220 Lines • ▼ Show 20 Lines | static void rna_def_modifier_mirror(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, "tolerance"); | RNA_def_property_float_sdna(prop, NULL, "tolerance"); | ||||
| 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.01, 6); | RNA_def_property_ui_range(prop, 0, 1, 0.01, 6); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, "Merge Distance", "Distance within which mirrored vertices are merged"); | prop, "Merge Distance", "Distance within which mirrored vertices are merged"); | ||||
| RNA_def_property_update(prop, 0, "rna_Modifier_update"); | RNA_def_property_update(prop, 0, "rna_Modifier_update"); | ||||
| prop = RNA_def_property(srna, "bisect_threshold", PROP_FLOAT, PROP_DISTANCE); | |||||
| RNA_def_property_float_sdna(prop, NULL, "bisect_threshold"); | |||||
| RNA_def_property_range(prop, 0, FLT_MAX); | |||||
| RNA_def_property_ui_range(prop, 0, 1, 0.01, 6); | |||||
| RNA_def_property_ui_text( | |||||
| prop, "Bisect Distance", "Distance from the bisect plane within which vertices are removed"); | |||||
| RNA_def_property_update(prop, 0, "rna_Modifier_update"); | |||||
| prop = RNA_def_property(srna, "mirror_object", PROP_POINTER, PROP_NONE); | prop = RNA_def_property(srna, "mirror_object", PROP_POINTER, PROP_NONE); | ||||
| RNA_def_property_pointer_sdna(prop, NULL, "mirror_ob"); | RNA_def_property_pointer_sdna(prop, NULL, "mirror_ob"); | ||||
| RNA_def_property_ui_text(prop, "Mirror Object", "Object to use as mirror"); | RNA_def_property_ui_text(prop, "Mirror Object", "Object to use as mirror"); | ||||
| RNA_def_property_flag(prop, PROP_EDITABLE | PROP_ID_SELF_CHECK); | RNA_def_property_flag(prop, PROP_EDITABLE | PROP_ID_SELF_CHECK); | ||||
| RNA_def_property_update(prop, 0, "rna_Modifier_dependency_update"); | RNA_def_property_update(prop, 0, "rna_Modifier_dependency_update"); | ||||
| RNA_define_lib_overridable(false); | RNA_define_lib_overridable(false); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 5,119 Lines • Show Last 20 Lines | |||||