Page MenuHome

Active tool in texture paint mode can't be registered
Open, Confirmed, MediumPublic

Tokens
"Like" token, awarded by eldee."Like" token, awarded by TheFlow."Love" token, awarded by bnzs."Love" token, awarded by JoshuaKnauber."Like" token, awarded by brilliant_ape.
Authored By

Description

System Information
Operating system: Windows-10-10.0.17134 64 Bits
Graphics card: Intel(R) HD Graphics 620 Intel 4.5.0 - Build 24.20.100.6136

Blender Version
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:

Details

Type
Bug

Event Timeline

Sebastian Parborg (zeddb) triaged this task as Confirmed, Medium priority.

You're trying to use circle select tool in Texture Paint mode. That tool doesn't exist in the texture paint context.

You're trying to use circle select tool in Texture Paint mode. That tool doesn't exist in the texture paint context.

You're right, that could have caused the error, but I removed everything that has to do with the circle select and it still only runs in all the different edit modes and object mode. Sculpting and painting for example are not working.
Hopefully I missed something, it'd be great if you could check out this script: