Page MenuHome

Fix T59065: Blender default keyset is deletable by user!
ClosedPublic

Authored by Sebastian Parborg (zeddb) on Mar 15 2019, 4:19 PM.

Details

Summary

This is my initial take on the issue.

Now you can no longer delete the default keyset via the - button in the keymap preferences.

Diff Detail

Event Timeline

There is still the issue of removing other presets which are distributed with Blender, we could check on disallowing presets to be removed if they're located in SYSTEM/LOCAL paths, only allow USER presets to be removed.

This needs some investigation to make sure it can work reliably though, to make sure it works properly for self contained zip-files where some settings are kept locally.

I've updated the patch based on your feedback.

Campbell Barton (campbellbarton) added inline comments.
release/scripts/modules/bpy/utils/__init__.py
470

One liner for why this is needed would be good, it seems like a strange check.

This revision is now accepted and ready to land.Oct 30 2019, 6:52 PM