Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/object/object_add.cc
| Show First 20 Lines • Show All 3,504 Lines • ▼ Show 20 Lines | void OBJECT_OT_convert(wmOperatorType *ot) | ||||
| ot->ui = object_convert_ui; | ot->ui = object_convert_ui; | ||||
| /* flags */ | /* flags */ | ||||
| ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; | ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; | ||||
| /* properties */ | /* properties */ | ||||
| ot->prop = RNA_def_enum( | ot->prop = RNA_def_enum( | ||||
| ot->srna, "target", convert_target_items, OB_MESH, "Target", "Type of object to convert to"); | ot->srna, "target", convert_target_items, OB_MESH, "Target", "Type of object to convert to"); | ||||
| RNA_def_boolean(ot->srna, | prop = RNA_def_boolean(ot->srna, | ||||
| "keep_original", | "keep_original", | ||||
| false, | false, | ||||
| "Keep Original", | "Keep Original", | ||||
| "Keep original objects instead of replacing them"); | "Keep original objects instead of replacing them"); | ||||
| RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_ID_OBJECT); | |||||
| RNA_def_boolean( | RNA_def_boolean( | ||||
| ot->srna, | ot->srna, | ||||
| "merge_customdata", | "merge_customdata", | ||||
| true, | true, | ||||
| "Merge UV's", | "Merge UV's", | ||||
| "Merge UV coordinates that share a vertex to account for imprecision in some modifiers"); | "Merge UV coordinates that share a vertex to account for imprecision in some modifiers"); | ||||
| ▲ Show 20 Lines • Show All 664 Lines • Show Last 20 Lines | |||||