diff options
author | Ton Roosendaal <ton@blender.org> | 2008-12-15 14:45:17 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2008-12-15 14:45:17 +0300 |
commit | f7106acde8a2b4ac9e1ef94bb3f30c75eda2d432 (patch) | |
tree | 157536acd8136e113cff52ea20380ef6a273ce87 /source/blender/editors/space_time | |
parent | 4a6d3b2ded36e5a5ea74121678d699c1ae9087c2 (diff) |
2.5
funtion WM_keymap_add_item() now returns keymap-item, so you can use it
to set default properties for operators with WM_keymap_property_set().
Brecht will fill in this function, requires rna magic!
Example: an operator ED_OB_OT_add_primitive can be configured with
keymap like this:
WM_keymap_property_set(keymapitem, "Primitivetype", "Sphere");
Similar conventions we can use later for button/menu calls.
This will make creating operators easier, allowing a developer to group
tools functionality nicely.
Diffstat (limited to 'source/blender/editors/space_time')
0 files changed, 0 insertions, 0 deletions