diff --git a/source/blender/editors/object/object_bake_api.cc b/source/blender/editors/object/object_bake_api.cc index 310e64d12fe..4924e771dd5 100644 --- a/source/blender/editors/object/object_bake_api.cc +++ b/source/blender/editors/object/object_bake_api.cc @@ -2236,13 +2236,12 @@ void OBJECT_OT_bake(wmOperatorType *ot) SCE_PASS_COMBINED, "Type", "Type of pass to bake, some of them may not be supported by the current render engine"); - prop = RNA_def_enum(ot->srna, - "pass_filter", - rna_enum_bake_pass_filter_type_items, - R_BAKE_PASS_FILTER_NONE, - "Pass Filter", - "Filter to combined, diffuse, glossy, transmission and subsurface passes"); - RNA_def_property_flag(prop, PROP_ENUM_FLAG); + RNA_def_enum_flag(ot->srna, + "pass_filter", + rna_enum_bake_pass_filter_type_items, + R_BAKE_PASS_FILTER_NONE, + "Pass Filter", + "Filter to combined, diffuse, glossy, transmission and subsurface passes"); RNA_def_string_file_path(ot->srna, "filepath", nullptr, diff --git a/source/blender/editors/transform/transform_ops.cc b/source/blender/editors/transform/transform_ops.cc index a6edf5624e7..1f6af955deb 100644 --- a/source/blender/editors/transform/transform_ops.cc +++ b/source/blender/editors/transform/transform_ops.cc @@ -730,13 +730,13 @@ void properties_register(wmOperatorType *ot, int flags) RNA_def_property_flag(prop, PROP_HIDDEN); if ((flags & P_GEO_SNAP) == P_GEO_SNAP) { - prop = RNA_def_enum(ot->srna, - "snap_elements", - rna_enum_snap_element_items, - SCE_SNAP_TO_INCREMENT, - "Snap to Elements", - ""); - RNA_def_property_flag(prop, PROP_HIDDEN | PROP_ENUM_FLAG); + prop = RNA_def_enum_flag(ot->srna, + "snap_elements", + rna_enum_snap_element_items, + SCE_SNAP_TO_INCREMENT, + "Snap to Elements", + ""); + RNA_def_property_flag(prop, PROP_HIDDEN); RNA_def_boolean(ot->srna, "use_snap_project", false, "Project Individual Elements", "");