Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/mesh/editmesh_select_similar.c
| Show First 20 Lines • Show All 1,412 Lines • ▼ Show 20 Lines | void MESH_OT_select_similar(wmOperatorType *ot) | ||||
| ot->poll = ED_operator_editmesh; | ot->poll = ED_operator_editmesh; | ||||
| ot->poll_property = edbm_select_similar_poll_property; | ot->poll_property = edbm_select_similar_poll_property; | ||||
| /* flags */ | /* flags */ | ||||
| ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; | ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; | ||||
| /* properties */ | /* properties */ | ||||
| prop = ot->prop = RNA_def_enum(ot->srna, "type", prop_similar_types, SIMVERT_NORMAL, "Type", ""); | prop = ot->prop = RNA_def_enum(ot->srna, "type", prop_similar_types, SIMVERT_NORMAL, "Type", ""); | ||||
| RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_ID_MESH); | |||||
| RNA_def_enum_funcs(prop, select_similar_type_itemf); | RNA_def_enum_funcs(prop, select_similar_type_itemf); | ||||
| RNA_def_enum(ot->srna, "compare", prop_similar_compare_types, SIM_CMP_EQ, "Compare", ""); | RNA_def_enum(ot->srna, "compare", prop_similar_compare_types, SIM_CMP_EQ, "Compare", ""); | ||||
| prop = RNA_def_float(ot->srna, "threshold", 0.0f, 0.0f, 1.0f, "Threshold", "", 0.0f, 1.0f); | prop = RNA_def_float(ot->srna, "threshold", 0.0f, 0.0f, 1.0f, "Threshold", "", 0.0f, 1.0f); | ||||
| /* Very small values are needed sometimes, similar area of small faces for e.g: see T87823 */ | /* Very small values are needed sometimes, similar area of small faces for e.g: see T87823 */ | ||||
| RNA_def_property_ui_range(prop, 0.0, 1.0, 0.01, 5); | RNA_def_property_ui_range(prop, 0.0, 1.0, 0.01, 5); | ||||
| } | } | ||||
| /** \} */ | /** \} */ | ||||