Correct default enum values

Had assert creating cheat sheet
This commit is contained in:
Campbell Barton 2015-07-07 23:09:08 +10:00
parent 3dc86f586c
commit 30b7aafe33
2 changed files with 2 additions and 2 deletions

View File

@ -910,7 +910,7 @@ void ARMATURE_OT_select_similar(wmOperatorType *ot)
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
/* properties */
ot->prop = RNA_def_enum(ot->srna, "type", prop_similar_types, 0, "Type", "");
ot->prop = RNA_def_enum(ot->srna, "type", prop_similar_types, SIMEDBONE_LENGTH, "Type", "");
RNA_def_float(ot->srna, "threshold", 0.1f, 0.0f, 1.0f, "Threshold", "", 0.0f, 1.0f);
}

View File

@ -1173,7 +1173,7 @@ static EnumPropertyItem *select_similar_type_itemf(bContext *C, PointerRNA *UNUS
return item;
}
return NULL;
return prop_similar_types;
}
void MESH_OT_select_similar(wmOperatorType *ot)