Blender Git Loki

Git Commits -> Revision 1bcadda

Revision 1bcadda by Campbell Barton (master)
October 31, 2012, 20:29 (GMT)
fix [#30910] Problems: Add Shortcut(s) for "Ctrl Tab" menu

comparing keymaps was too sloppy or too strict, now sloppy keymap comparison works by setting all the operator
properties to their default values if they are not already set, then compare this with the keymap item (ignoring values missing from either one).

... this way any non default keymap setting wont match with an operator menu item which doesnt set this operator at all (a problem sighted in this bug report).


developer notes:
- IDP_EqualsProperties_ex() function adds an argument to treat missing members of either group to act as if there is a match.
- WM_operator_properties_default() function to reset RNA values to their defaults.
- add IDP_spit(), debug only function to print out ID properties.

Commit Details:

Full Hash: 1bcadda46b96e3e557aad1b0d2d53a0b4743b413
SVN Revision: 51798
Parent Commit: 26541af
Lines Changed: +139, -18

6 Modified Paths:

/source/blender/blenkernel/BKE_idprop.h (+11, -0) (Diff)
/source/blender/blenkernel/intern/idprop.c (+11, -4) (Diff)
/source/blender/python/generic/idprop_py_api.c (+37, -0) (Diff)
/source/blender/windowmanager/intern/wm_keymap.c (+43, -14) (Diff)
/source/blender/windowmanager/intern/wm_operators.c (+36, -0) (Diff)
/source/blender/windowmanager/WM_api.h (+1, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021