Blender Git Loki
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