Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-03-29Fix memory leak re-registering operatorsCampbell Barton
Re-registering an operator used by the keymap would lead memory. Reload scripts for eg leaked over ~1600 blocks.
2016-10-16Fix T49746: crash loading user preferences with missing operators.Brecht Van Lommel
2016-10-03Fix memory leak caused by unknown opeartor of keymap itemJulian Eisel
2016-07-07Quiet gcc warning-as-error about non-const pointer passed to const parameter.Bastien Montagne
2016-07-07Fix T48802 Unwrap buttons, can't add hotkey in 3DView's UV Unwrap menu.Bastien Montagne
Those unwrap operators are a bit tricky, some are available from both 3DView and UVEditor, others only from 3DView... Hacked around this by returning Mesh keymap for UV_OT ops for specific 3DView/MeshEditMode context.
2015-12-13Grease Pencil: Merge GPencil_Editing_Stage3 branch into masterJoshua Leung
This commit merges all the work done in the GPencil_Editing_Stage3 branch as of ef2aecf2db981b5344e0d14e7f074f1742b0b2f7 into master. For more details about the changes that this brings, see the WIP release notes: http://wiki.blender.org/index.php/Dev:Ref/Release_Notes/2.77/GPencil
2015-12-03Cleanup: change `WM_key_event_operator_id` to `WM_key_event_operator` and ↵Bastien Montagne
make it return kmi pointer directly. All three usages of this func were only using kmi_id to find again kmi itself, pretty dumb!
2015-12-02Fix T46905: UV/Image Editor - Can't add shortcut to Mirror / X Axis menu itemBastien Montagne
Yet another Space/NoSpace mismatch when searching keymaps in WM_keymap_guess_opname(). Spent again some time trying to chase those, was the only one I found...
2015-11-23Cleanup: use `rna_enum_` prefix for RNA enumsCampbell Barton
Definitions could shadow local vars.
2015-11-05Fix T46691: Graph Editor, Channel, Toggle Channel Editability. Cannot ↵Bastien Montagne
reassign hotkey after removing it. Anim Channels keymap is not editor-related...
2015-10-24Fix T46538: Mark and Clear Seam in UV Editor, assigning Hotkeys.Bastien Montagne
UV Editor keymap is not bound to a given editor (spacetype)...
2015-09-27Fix T46268: All Hotkey "C" are unexpectedly translated in menus.Bastien Montagne
We need custom context here, those are often very short names so context collision is pretty easy. Also some minor changes (and avoid shadowing varnames)...
2015-09-12Cleanup: Quiet some picky warning from Coverity.Bastien Montagne
2015-09-11Fix T45579: Custom Hotkeys Dissapear.Bastien Montagne
Due to how we find kmi to remove and kmi to add when patching final keymap with user defines, we could actually end up with same kmi for both, see comments in code for details. Note that it may be a good idea to make user-defined customizations specific to a given base keymap, instead of applying them blindly?
2015-08-18Refactor translation code out of blenfontCampbell Barton
- Add blentranslation `BLT_*` module. - moved & split `BLF_translation.h` into (`BLT_translation.h`, `BLT_lang.h`). - moved `BLF_*_unifont` functions from `blf_translation.c` to new source file `blf_font_i18n.c`.
2015-08-01Node Editor: A bunch of new utility functionsJulian Eisel
Needed for node insert offset (Auto-offset in UI), but kept separate so people notice it without having to check insert offset commit (not for commit ratio of course ;) )
2015-08-01Allow accessing modal keymap strings directly from keymapJulian Eisel
Previously you had to pass operator which in some cases might not be available or hard to get.
2015-07-12Shortcut-to-string converter: add 'dbl-' in front of key when expecting a ↵Bastien Montagne
double-click. I think this is the only Keymap value we really need to handle here...
2015-07-03Walk mode: Add modal shortcuts in UI (header help message).Bastien Montagne
2015-07-03Cleanup: 'return' parameters to the end of functions, and use 'r_' prefix ↵Bastien Montagne
for them.
2015-07-03UI: add ability to access/generate 'shortcuts strings' of modal keymaps.Bastien Montagne
We already had that for global keymaps (used e.g. to generate shortcuts for menu entries), but this wasn’t possible for modal keymaps yet (e.g. help message in header during transforms and other modal operation). This commit only adds needing background code, it does not change anything from user PoV. Modal operators will be updated to use it in comming weeks. Thanks to Campbell for revisions & suggestions. :) Differential Revision: https://developer.blender.org/D780
2015-05-19Building without Python works againCampbell Barton
2015-05-15Fix some issues found by Coverity ScanJulian Eisel
Some of them are just brain dead code, some are potential bugs.
2015-05-08Cleanup: use r_* prefix for return argsCampbell Barton
2015-04-07Revert Sticky Keys (and everything related to that)Julian Eisel
Our current keymap doesn't give us enough room to make such changes in the event system. To fix small issues caused by this, we would need to do drastic changes in Blender's keymaps and internal handling. It was worth a try, but it didn't work. I can write down a more descriptive statement in a few days, but for now I need a break of this stuff.
2015-04-03Sticky Keys backendJulian Eisel
Design task: T42339 Differential Revision: D840 Initial implementation proposal: T41867 Short description: With this we can distinguish between holding and tabbing a key. Useful is this if we want to assign to operators to a single shortcut. If two operators are assigned to one shortcut, we call this a sticky key. More info is accessible through the design task and the diff. A few people that were involved with this: * Sean Olson for stressing me with this burden ;) - It is his enthusiasm that pushed me forward to get this done * Campbell and Antony for the code and design review * Ton for the design review * All the other people that gave feedback on the patch and helped to make this possible A big "Thank You" for you all!
2015-02-02cleanup: style/spellingCampbell Barton
2015-01-29Fix T41757: Inconsistent hotkey label with setting.Bastien Montagne
Issue is double here: * Quite a handfull of menu entries actually diverge slightly from their shortcut counterpart (often one has a prop explicitely set to its default value, when the other keep it unset). * Current code was actually basically sending 'is_strict' option into canal, by doing a second check in `wm_keymap_item_find` setting unset op props to their default value! Now, is_strict mostly says one thing: "never consider an unset property as equal to a set one". Even if set property matches default value. Default values are not always the same things as unset ones, as demonstrated by this report. So we are being much stricter now, and also have to check shortcuts and menu entries definitions actually matches, added some code (triggered by --debug-wm option) that prints when it finds some (potential) issue. There is one exception though - Macros. Those have their whole prop set defined in menu entries currently, this shall probably not be the case, but is another issue, so for now for macro operators we always do non-strict comparison (pretty much the same as previously, in this case). Also 'enum' operators are still tricky. Currently, shortcut extraction relies on `ot->prop` being set, so even if this is not aboslutely needed anymore (when defining UI you can specify an arbitrary enum property by name), `ot->prop` shall be set. Note fix commit for mismatches between menu entries and shortcuts is needed next.
2015-01-26Cleanup: strcmp/strncmp -> STREQ/STREQLEN (in boolean usage).Bastien Montagne
Makes usage of those funcs much more clear, we even had mixed '!strcmp(foo, bar)' and 'strcmp(foo, bar) == 0' in several places...
2014-11-29Cleanup: unused headersCampbell Barton
2014-10-08Fix T42137: Keymap editing is brokenBastien Montagne
Own mistake in previous fix here, was too greedy in finding an existing kmi of UserPref add diff kmi, we only want to ignore exact same kmi's here.
2014-10-07Fix T42088: Creating new keybinds can cause duplicates when saving key ↵Bastien Montagne
config profile When patching a keymap with a 'UserPref' diff one, do not add keymap items from diff if they already exists in patched keymap.
2014-09-14Cleanup & typo in assignmentCampbell Barton
2014-09-13Fix T41811: unreachable code in wm_keymap.cBastien Montagne
There was also an issue with passing sl->spacetype here, for some reason...
2014-08-20Replace strstr with STRPREFIXCampbell Barton
No need to search the whole string.
2014-08-19Fix T41477: Some UI op buttons have no more option to edit shortcuts.Bastien Montagne
`WM_keymap_guess_opname()` was missing a bunch of op 'types'/familly. Now all are there, either trying to find a matching keymap, or explicitely listed in a comment as skipped for now. Note matching might not be perfect in all case, but we can easily tweak that later if needed.
2014-08-11Minor cleanupAntony Riakiotakis
2014-08-11Pie Menus C code backend.Antony Riakiotakis
This commit merges the code in the pie-menu branch. As per decisions taken the last few days, there are no pie menus included and there will be an official add-on including overrides of some keys with pie menus. However, people will now be able to use the new code in python. Full Documentation is in http://wiki.blender.org/index.php/Dev:Ref/ Thanks: Campbell Barton, Dalai Felinto and Ton Roosendaal for the code review and design comments Jonathan Williamson, Pawel Lyczkowski, Pablo Vazquez among others for suggestions during the development. Special Thanks to Sean Olson, for his support, suggestions, testing and merciless bugging so that I would finish the pie menu code. Without him we wouldn't be here. Also to the rest of the developers of the original python add-on, Patrick Moore and Dan Eicher and finally to Matt Ebb, who did the research and first implementation and whose code I used to get started.
2014-07-19Defines: replace ELEM3-16 with ELEM(...), that can take varargsCampbell Barton
2014-04-30Code cleanup: remove unused includesCampbell Barton
Opted to keep includes if they are used indirectly (even if removing is possible).
2014-04-01Code cleanup: remove TRUE/FALSE & WITH_BOOL_COMPAT defineCampbell Barton
2014-02-07ListBase API: add utility api funcs for clearing and checking emptyCampbell Barton
2014-02-05Code cleanup: use bool for static methodsCampbell Barton
2014-02-03Fix T38447: Deactivated hotkeys are still showing in menuJoshua Leung
2014-01-27Code cleanup: use booleans where appropriateCampbell Barton
2014-01-23Fix T38042: Keymap crash after reloading operatorsCampbell Barton
After some investigation with mont29, seems like the best way to ensure keymaps point to valid operators is using WM_keyconfig_update().
2014-01-19Docs: doxygen file descriptions for BLF, GPU and WMCampbell Barton
2014-01-15Cleanup: some boolean int to real bool.Bastien Montagne
2013-11-18Fix T37301: Command line render gives seg fault 11 on OS XSergey Sharybin
Issue was caused by wm->defaultconf being NULL when in background mode which made keymap modifications from a script crash. Reviewed by Brecht, thanks!
2013-10-23style cleanupCampbell Barton