WorkSpaceTool bl_icon trouble #68720
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
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#68720
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.18362 64 Bits
Graphics card: GeForce GTX 1050 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 388.13
Blender Version
Broken: version: 2.80 (sub 75), branch: master, commit date: 2019-07-29 14:47, hash:
blender/blender@f6cb5f5449
Worked: (optional)
Short description of error
So. I create WorkSpaceTool class with my custom icon and register it. If I install the addon with this tool from zip file, icon moved to addon directory (C:\Users\Username\AppData\Roaming\Blender Foundation\Blender\2.80\scripts\addons\MyAddonName\icons\ops.generic.toolname.dat). But in the toolbar I have "None" icon. Ok, before calling
I use next lines:
to move icon to C:\Program Files\Blender Foundation\Blender\2.80\datafiles\icons. This operation can be done only if start Blender as administrator.
But why I can't search icon directly in the adon directory? Why user whu install my addon need to move one file by hands?
Added subscriber: @ivpe
Added subscribers: @ideasman42, @lichtwerk
This is true, since the toolsystem always uses
bpy.utils.system_resource('DATAFILES', "icons")
, see_icon_value_from_icon_handle
.Since you already changed this from bug to TODO, I would kindly ask @ideasman42 about the design of this: how are addons supposed to provide their tool icons bundled? I think we can confirm this [I expect lots of addons wanting to do this]?
Should this be put on https://developer.blender.org/T63733?
Ok, thank you for feedback. I'm waiting