Blender Git Commit Log

Git Commits -> Revision f7106ac

Revision f7106ac by Ton Roosendaal (master)
December 15, 2008, 11:45 (GMT)
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.


Commit Details:

Full Hash: f7106acde8a2b4ac9e1ef94bb3f30c75eda2d432
SVN Revision: 17870
Parent Commit: 4a6d3b2
Lines Changed: +16, -7

3 Modified Paths:

/source/blender/windowmanager/intern/wm_event_system.c (+1, -0) (Diff)
/source/blender/windowmanager/intern/wm_keymap.c (+11, -4) (Diff)
/source/blender/windowmanager/WM_api.h (+4, -3) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021