Page MenuHome

Fix greasepencil add-on keymap item removal and doc string
ClosedPublic

Authored by Robert Guetzkow (rjg) on Nov 30 2020, 11:14 AM.

Details

Summary

This patch fixes T83099. This issue was caused by the greasepencil add-on removing keymap items it hadn't created itself, thus invalidating references that other add-ons held for the keymap items they've created. This is fixed by storing a reference to the created keymap items alongside the keymap and only removing those items that the add-on created itself. Additionally, this commit fixes the doc string that was no longer valid

Diff Detail

Repository
rBA Blender Add-ons
Branch
2020-11-30-keymap-v2
Build Status
Buildable 11450
Build 11450: arc lint + arc unit

Event Timeline

Robert Guetzkow (rjg) requested review of this revision.Nov 30 2020, 11:14 AM
Bastien Montagne (mont29) requested changes to this revision.Nov 30 2020, 11:19 AM

Please keep space cleanup out of revisions, it makes it fairly annoying to review otherwise...

This revision now requires changes to proceed.Nov 30 2020, 11:19 AM

Remove whitespace formatting changes caused by auto-formatting of the IDE

Sorry about that, my PyCharm IDE is configured to auto-format for PEP 8 compliance.

Robert Guetzkow (rjg) edited the summary of this revision. (Show Details)Nov 30 2020, 12:48 PM
This revision is now accepted and ready to land.Nov 30 2020, 6:36 PM
Aaron Carlisle (Blendify) added inline comments.
greasepencil_tools/__init__.py
28

This allows proper doc versioning instead of always using the developmental version.

greasepencil_tools/__init__.py
28

I'll add this change before committing.

  • Use doc_url matching the Blender version
This comment was removed by Robert Guetzkow (rjg).
  • Remove whitespace formatting changes again