Fix #30958: Right click menu and add shortcut for importers/exporters doesn't work
authorSergey Sharybin <sergey.vfx@gmail.com>
Mon, 16 Apr 2012 09:55:54 +0000 (09:55 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Mon, 16 Apr 2012 09:55:54 +0000 (09:55 +0000)
commit987dd552455e27b7296233f0ac569690c2e50e21
tree61bcbc226ddd0ac5d35d714dafc29125db9eebb9
parent4d1c7992d7855f7931524d873154cbc1b8b8ae28
Fix #30958: Right click menu and add shortcut for importers/exporters doesn't work

This was caused by how keymap is guessing for importer/exporter:

- In some cases if detected wrong keymap like for IMPORT_CURVE_OT_svg
  curve editing context was used because of CURVE_OT substring in
  operator name
- In other cases no keymap was detected because of substrings
  WM_keymap_guess_opname cheched.

Fixed by using Window keymap for any operator with EXPORT_/IMPORT_ substring
which seems to detect importer/exporter operator and only them nicely.
source/blender/windowmanager/intern/wm_keymap.c