Blender Git Commit Log

Git Commits -> Revision b236653

Revision b236653 by Campbell Barton (master)
May 18, 2021, 07:38 (GMT)
Fix error in grease pencil flip color operator

- Used try/except instead of a poll function.
- The error case referenced a non-existent error handling module.

Prefer poll functions over exception handling where possible,
also having an operators logic in a try block isn't good practice
as it can hide more serious errors in the code.

Note that duplicate pencil settings access should be moved into a
utility function. This can be part of a separate cleanup.

Commit Details:

Full Hash: b236653f8a4c0ae6a46369c6ff420d9f4a619808
Parent Commit: dfb963c
Lines Changed: +32, -26

1 Modified Path:

/release/scripts/startup/bl_ui/properties_grease_pencil_common.py (+32, -26) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021