2.5
authorTon Roosendaal <ton@blender.org>
Mon, 15 Dec 2008 11:45:17 +0000 (11:45 +0000)
committerTon Roosendaal <ton@blender.org>
Mon, 15 Dec 2008 11:45:17 +0000 (11:45 +0000)
commitf7106acde8a2b4ac9e1ef94bb3f30c75eda2d432
tree157536acd8136e113cff52ea20380ef6a273ce87
parent4a6d3b2ded36e5a5ea74121678d699c1ae9087c2
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.
source/blender/windowmanager/WM_api.h
source/blender/windowmanager/intern/wm_event_system.c
source/blender/windowmanager/intern/wm_keymap.c