diff options
author | Ton Roosendaal <ton@blender.org> | 2009-01-01 17:57:04 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2009-01-01 17:57:04 +0300 |
commit | a1961436f564ad885a014dc964d443378a4b9617 (patch) | |
tree | 5dd883b97048d8474b5c5f31302686610c2084c0 /source/blender/editors/screen | |
parent | e9a3b4f85df2261cafea0bfc9f0a885708cdf9d6 (diff) |
2.5
- Made scrollwheel behave uniform for zooming. It uses the UserDef
to map what's in our out. Use keymap entries WHEELINMOUSE and
WHEELOUTMOUSE to trigger this. Also removed the feature to store
in event->val the direction, it was conflicting with KM_ANY.
- Added more default poll callbacks, use for generic ops things
like ED_operator_object_active.
Diffstat (limited to 'source/blender/editors/screen')
-rw-r--r-- | source/blender/editors/screen/screen_ops.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/editors/screen/screen_ops.c b/source/blender/editors/screen/screen_ops.c index d65c4d0f504..6c4ccad6a33 100644 --- a/source/blender/editors/screen/screen_ops.c +++ b/source/blender/editors/screen/screen_ops.c @@ -79,6 +79,14 @@ int ED_operator_screen_mainwinactive(bContext *C) return 1; } +int ED_operator_scene_editable(bContext *C) +{ + Scene *scene= CTX_data_scene(C); + if(scene && scene->id.lib==NULL) + return 1; + return 0; +} + static int ed_spacetype_test(bContext *C, int type) { if(ED_operator_areaactive(C)) { |