[Bf-blender-cvs] [20f53f69849] master: Correct assert in 399ac1ff113e20688f277157ccb3c671648c9b1c
Campbell Barton
noreply at git.blender.org
Wed Mar 9 03:44:25 CET 2022
Commit: 20f53f6984997f94def980b71a4e71119dbb147d
Author: Campbell Barton
Date: Wed Mar 9 13:43:39 2022 +1100
Branches: master
https://developer.blender.org/rB20f53f6984997f94def980b71a4e71119dbb147d
Correct assert in 399ac1ff113e20688f277157ccb3c671648c9b1c
Pass NULL instead of an empty string.
===================================================================
M source/blender/editors/animation/keyframing.c
===================================================================
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;
}
More information about the Bf-blender-cvs
mailing list