WIP: Brush assets project #106303
|
@ -2772,7 +2772,7 @@ class VIEW3D_MT_object_animation(Menu):
|
|||
layout = self.layout
|
||||
|
||||
layout.operator("anim.keyframe_insert", text="Insert Keyframe")
|
||||
layout.operator("anim.keyframe_insert_menu", text="Insert Keyframe with Keying Set")
|
||||
layout.operator("anim.keyframe_insert_menu", text="Insert Keyframe with Keying Set").always_prompt = True
|
||||
layout.operator("anim.keyframe_delete_v3d", text="Delete Keyframes...")
|
||||
layout.operator("anim.keyframe_clear_v3d", text="Clear Keyframes...")
|
||||
layout.operator("anim.keying_set_active_set", text="Change Keying Set...")
|
||||
|
@ -3037,7 +3037,7 @@ class VIEW3D_MT_object_context_menu(Menu):
|
|||
layout.separator()
|
||||
|
||||
layout.operator("anim.keyframe_insert", text="Insert Keyframe")
|
||||
layout.operator("anim.keyframe_insert_menu", text="Insert Keyframe with Keying Set")
|
||||
layout.operator("anim.keyframe_insert_menu", text="Insert Keyframe with Keying Set").always_prompt = True
|
||||
|
||||
layout.separator()
|
||||
|
||||
|
@ -4155,7 +4155,7 @@ class VIEW3D_MT_pose_context_menu(Menu):
|
|||
layout.operator_context = 'INVOKE_REGION_WIN'
|
||||
|
||||
layout.operator("anim.keyframe_insert", text="Insert Keyframe")
|
||||
layout.operator("anim.keyframe_insert_menu", text="Insert Keyframe with Keying Set")
|
||||
layout.operator("anim.keyframe_insert_menu", text="Insert Keyframe with Keying Set").always_prompt = True
|
||||
|
||||
layout.separator()
|
||||
|
||||
|
|
|
@ -1381,7 +1381,13 @@ static KeyingSet *keyingset_get_from_op_with_error(wmOperator *op, PropertyRNA *
|
|||
else if (prop_type == PROP_STRING) {
|
||||
char type_id[MAX_ID_NAME - 2];
|
||||
RNA_property_string_get(op->ptr, prop, type_id);
|
||||
ks = ANIM_keyingset_get_from_idname(scene, type_id);
|
||||
|
||||
if (strcmp(type_id, "__ACTIVE__") == 0) {
|
||||
ks = ANIM_keyingset_get_from_enum_type(scene, scene->active_keyingset);
|
||||
}
|
||||
else {
|
||||
ks = ANIM_keyingset_get_from_idname(scene, type_id);
|
||||
}
|
||||
|
||||
if (ks == nullptr) {
|
||||
BKE_reportf(op->reports, RPT_ERROR, "Keying set '%s' not found", type_id);
|
||||
|
|
Loading…
Reference in New Issue