Fix "Select Similar" faces when building without freestyle

Most options for select similar faces weren't displayed.
This commit is contained in:
Campbell Barton
2025-01-08 17:18:53 +11:00
parent e52bbae2bf
commit fbfe88fd80

View File

@@ -1316,7 +1316,7 @@ static const EnumPropertyItem *select_similar_type_itemf(bContext *C,
#ifdef WITH_FREESTYLE
const int a_end = SIMFACE_FREESTYLE;
#else
const int a_end = SIMFACE_MATERIAL;
const int a_end = SIMFACE_SMOOTH;
#endif
for (a = SIMFACE_MATERIAL; a <= a_end; a++) {
RNA_enum_items_add_value(&item, &totitem, prop_similar_types, a);