Adding menu entries for the new hotkeys (change keying set)

This commit is contained in:
Joshua Leung
2010-03-25 11:42:02 +00:00
parent b88278b62b
commit 535bce8cf1
3 changed files with 13 additions and 1 deletions

View File

@@ -654,6 +654,7 @@ class VIEW3D_MT_object(bpy.types.Menu):
layout.operator("anim.keyframe_insert_menu", text="Insert Keyframe...")
layout.operator("anim.keyframe_delete_v3d", text="Delete Keyframe...")
layout.operator("anim.keying_set_active_set", text="Change Keying Set...")
layout.separator()
@@ -1020,6 +1021,7 @@ class VIEW3D_MT_pose(bpy.types.Menu):
layout.operator("anim.keyframe_insert_menu", text="Insert Keyframe...")
layout.operator("anim.keyframe_delete_v3d", text="Delete Keyframe...")
layout.operator("anim.keying_set_active_set", text="Change Keying Set...")
layout.separator()

View File

@@ -44,6 +44,7 @@
#include "BKE_fcurve.h"
#include "BKE_nla.h"
#include "BKE_library.h"
#include "BKE_utildefines.h"
#include "RNA_access.h"
#include "nla_private.h"

View File

@@ -914,7 +914,16 @@ static int nlaedit_bake_exec (bContext *C, wmOperator *op)
/* for each AnimData block, bake strips to animdata... */
for (ale= anim_data.first; ale; ale= ale->next) {
// FIXME
AnimData *adt = (AnimData *)ale->data;
/* if animdata currently has an action, 'push down' this onto the stack first */
BKE_nla_action_pushdown(adt);
/* temporarily mute the action, and start keying to it */
/* start keying... */
/* unmute the action */
}
/* free temp data */