Tools cannot be registered into some contexts (e.g. PAINT_TEXTURE). #63892
Labels
No Label
Interest
Animation & Rigging
Interest
Blender Cloud
Interest
Collada
Interest
Core
Interest
Documentation
Interest
Eevee & Viewport
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
Import and Export
Interest
Modeling
Interest
Modifiers
Interest
Nodes & Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds, Tests & Devices
Interest
Python API
Interest
Rendering & Cycles
Interest
Sculpt, Paint & Texture
Interest
Translations
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Meta
Good First Issue
Meta
Papercut
Module
Add-ons (BF-Blender)
Module
Add-ons (Community)
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
5 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#63892
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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:
blender/blender@d966c2f0c2
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
Here's the script which is described above:
ui_tool_simple.py
Added subscriber: @JoshuaKnauber
Added subscriber: @DanPool
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:
ui_tool_simple.py
Added subscriber: @ideasman42
This issue was referenced by blender/blender@f9e51662bd
This issue was referenced by blender/blender@d95e9c7cf8
Added subscriber: @lichtwerk
Reconfirmed.
This fails because some tool contexts define their tools with functions [see the following list for context that fail]:
ToolSelectPanelHelper._tools_flatten()
is usually called withcls.tools_from_context(context)
[that already yields from the function]But when registering a tool, _tools_flatten() will still give back this function not a
ToolDef
- and we cannot get abl_idname
from that:Active tool in texture paint mode can't be registeredto Tools cannot be registered into some contexts (e.g. PAINT_TEXTURE).Changed status from 'Confirmed' to: 'Resolved'