Fix subtype & default for keying set operator properties

Error in 1a12c9edab,
also correct descriptions.
This commit is contained in:
Campbell Barton 2022-03-09 13:19:33 +11:00
parent e55f4657f7
commit 399ac1ff11
Notes: blender-bot 2023-02-14 10:21:15 +01:00
Referenced by commit 20f53f6984, Correct assert in 399ac1ff11
1 changed files with 4 additions and 2 deletions

View File

@ -1957,7 +1957,8 @@ void ANIM_OT_keyframe_insert_by_name(wmOperatorType *ot)
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
/* keyingset to use (idname) */
prop = RNA_def_string_file_path(ot->srna, "type", "Type", MAX_ID_NAME - 2, "", "");
prop = RNA_def_string(
ot->srna, "type", "", MAX_ID_NAME - 2, "Keying Set", "The Keying Set to use");
RNA_def_property_flag(prop, PROP_HIDDEN);
ot->prop = prop;
}
@ -2117,7 +2118,8 @@ void ANIM_OT_keyframe_delete_by_name(wmOperatorType *ot)
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
/* keyingset to use (idname) */
prop = RNA_def_string_file_path(ot->srna, "type", "Type", MAX_ID_NAME - 2, "", "");
prop = RNA_def_string(
ot->srna, "type", "", MAX_ID_NAME - 2, "Keying Set", "The Keying Set to use");
RNA_def_property_flag(prop, PROP_HIDDEN);
ot->prop = prop;
}