diff options
author | Campbell Barton <campbell@blender.org> | 2022-03-09 05:43:39 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-03-09 05:43:39 +0300 |
commit | 20f53f6984997f94def980b71a4e71119dbb147d (patch) | |
tree | 9c35fd975703e09604468726ba1245b180edd990 | |
parent | 399ac1ff113e20688f277157ccb3c671648c9b1c (diff) |
Correct assert in 399ac1ff113e20688f277157ccb3c671648c9b1c
Pass NULL instead of an empty string.
-rw-r--r-- | source/blender/editors/animation/keyframing.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/animation/keyframing.c b/source/blender/editors/animation/keyframing.c index 25b1ccecf2e..feb78ce293e 100644 --- a/source/blender/editors/animation/keyframing.c +++ b/source/blender/editors/animation/keyframing.c @@ -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; } |