Correct assert in 399ac1ff11

Pass NULL instead of an empty string.
This commit is contained in:
Campbell Barton 2022-03-09 13:43:39 +11:00
parent 399ac1ff11
commit 20f53f6984
1 changed files with 2 additions and 2 deletions

View File

@ -1958,7 +1958,7 @@ void ANIM_OT_keyframe_insert_by_name(wmOperatorType *ot)
/* keyingset to use (idname) */
prop = RNA_def_string(
ot->srna, "type", "", MAX_ID_NAME - 2, "Keying Set", "The Keying Set to use");
ot->srna, "type", NULL, MAX_ID_NAME - 2, "Keying Set", "The Keying Set to use");
RNA_def_property_flag(prop, PROP_HIDDEN);
ot->prop = prop;
}
@ -2119,7 +2119,7 @@ void ANIM_OT_keyframe_delete_by_name(wmOperatorType *ot)
/* keyingset to use (idname) */
prop = RNA_def_string(
ot->srna, "type", "", MAX_ID_NAME - 2, "Keying Set", "The Keying Set to use");
ot->srna, "type", NULL, MAX_ID_NAME - 2, "Keying Set", "The Keying Set to use");
RNA_def_property_flag(prop, PROP_HIDDEN);
ot->prop = prop;
}