Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/object/object_add.c
| Context not available. | |||||
| RNA_def_property_flag(prop, PROP_HIDDEN | PROP_SKIP_SAVE); | RNA_def_property_flag(prop, PROP_HIDDEN | PROP_SKIP_SAVE); | ||||
| } | } | ||||
| void ED_object_add_mesh_props(wmOperatorType *ot) | |||||
| { | |||||
| RNA_def_boolean(ot->srna, "calc_uvs", false, "Generate UVs", "Generate a default UV map"); | |||||
campbellbarton: This could be optional, but instead, could probably add `ED_object_add_mesh_props` since this… | |||||
| } | |||||
| bool ED_object_add_generic_get_opts(bContext *C, wmOperator *op, const char view_align_axis, | bool ED_object_add_generic_get_opts(bContext *C, wmOperator *op, const char view_align_axis, | ||||
Not Done Inline ActionsWhy Skip-Save? seems this is useful to remember. campbellbarton: Why Skip-Save? seems this is useful to remember. | |||||
| float loc[3], float rot[3], | float loc[3], float rot[3], | ||||
| bool *enter_editmode, unsigned int *layer, bool *is_view_aligned) | bool *enter_editmode, unsigned int *layer, bool *is_view_aligned) | ||||
| Context not available. | |||||
This could be optional, but instead, could probably add ED_object_add_mesh_props since this only applies to meshes.