Operating system: Windows-10-10.0.17134 64 Bits
Graphics card: Intel(R) HD Graphics 620 Intel 4.5.0 - Build 220.127.116.1136
Broken: version: 2.80 (sub 59), branch: blender2.7, commit date: 2019-04-24 22:25, hash: rBd966c2f0c2ad
Short description of error
When trying to create an active tool in texture painting mode, a error message appears and the tool can't be registered.
Exact steps for others to reproduce the error
- Load the script template for a UI tool simple
- Remove the information for the second tool
- Change the bl_context_mode to "PAINT_TEXTURE"
- Run script: Name error: name "context" is not defined
Here's the script which is described above: