diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-10-29 22:59:38 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-10-29 22:59:38 +0300 |
commit | 8c707b2a5f306f149bcd3057ab6fe91076c75dd8 (patch) | |
tree | 4dbc20ad3f05af87037215e652f56c003f1f452c /source/blender/editors/animation/keyingsets.c | |
parent | 099438f087b20a3ead6f018e208e8a5e84ac99f9 (diff) |
moved the following into the screen context rather then the view3d context so python scripts can access these when running in the console.
"visible_bones", "editable_bones", "selected_bones", "selected_editable_bones", "visible_pchans", "selected_pchans", "active_bone", "active_pchan",
added "C" to the consoles namespace, temp hack but useful
Diffstat (limited to 'source/blender/editors/animation/keyingsets.c')
-rw-r--r-- | source/blender/editors/animation/keyingsets.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source/blender/editors/animation/keyingsets.c b/source/blender/editors/animation/keyingsets.c index 97b64cb36c9..0f4f29d0091 100644 --- a/source/blender/editors/animation/keyingsets.c +++ b/source/blender/editors/animation/keyingsets.c @@ -1267,7 +1267,8 @@ short modifykey_get_context_data (bContext *C, ListBase *dsources, KeyingSet *ks /* for now, the active area is used to determine what set of contexts apply */ if (sa == NULL) return 0; - + +#if 0 switch (sa->spacetype) { case SPACE_VIEW3D: /* 3D-View: Selected Objects or Bones */ return modifykey_get_context_v3d_data(C, dsources, ks); @@ -1275,6 +1276,10 @@ short modifykey_get_context_data (bContext *C, ListBase *dsources, KeyingSet *ks /* nothing happened */ return 0; +#endif + + /* looking into this code, it doesnt use the 3D view - Campbell */ + return modifykey_get_context_v3d_data(C, dsources, ks); } /* KeyingSet Operations (Insert/Delete Keyframes) ------------ */ |