Operators doing several different things can only have one tooltip (see e.g. Transfer weights tooltip). #85233

Closed
opened 2021-01-30 18:54:05 +01:00 by Samuli Pahaoja · 10 comments

There is currently no way to alter the tooltip of operators doing different actions depending on their settings.

Note that usually, the way to work around that is to create several operators using same code under the hood? If we accept that as a solution, then at some point we need document that in coding guidelines, and to check and address existing cases.


Original report

System Information
Operating system: Windows-10-10.0.19041-SP0 64 Bits
Graphics card: GeForce RTX 2060 SUPER/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 457.51

Blender Version
Broken: version: 2.91.2, branch: master, commit date: 2021-01-19 16:15, hash: 5be9ef4177

Short description of error
Weight Paint mode menu entry "Transfer Weights" tooltip says "Transfer data ... from active to selected meshes", but it appears to do the opposite.

There is currently no way to alter the tooltip of operators doing different actions depending on their settings. Note that usually, the way to work around that is to create several operators using same code under the hood? If we accept that as a solution, then at some point we need document that in coding guidelines, and to check and address existing cases. -------------------------------------------- *Original report* **System Information** Operating system: Windows-10-10.0.19041-SP0 64 Bits Graphics card: GeForce RTX 2060 SUPER/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 457.51 **Blender Version** Broken: version: 2.91.2, branch: master, commit date: 2021-01-19 16:15, hash: `5be9ef4177` **Short description of error** Weight Paint mode menu entry "Transfer Weights" tooltip says "Transfer data ... from active to selected meshes", but it appears to do the opposite.
Author

Added subscriber: @skarkkai

Added subscriber: @skarkkai
Member

Added subscriber: @filedescriptor

Added subscriber: @filedescriptor
Member

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Member

I can confirm this on the latest alpha and beta. It indeed seems like the active object's data is changed and the selected objects are not affected. The manual also disagrees with the tooltip: https://docs.blender.org/manual/en/latest/sculpt_paint/weight_paint/editing.html#transfer-weights

I can confirm this on the latest alpha and beta. It indeed seems like the active object's data is changed and the selected objects are not affected. The manual also disagrees with the tooltip: https://docs.blender.org/manual/en/latest/sculpt_paint/weight_paint/editing.html#transfer-weights

Added subscriber: @mont29

Added subscriber: @mont29

This is a generic known issue regarding operators' tooltips, there is only one tooltip, even if code can do several different things...

Though we had a task for that already, but apparently not, so will keep that one for that now.

This is a generic known issue regarding operators' tooltips, there is only one tooltip, even if code can do several different things... Though we had a task for that already, but apparently not, so will keep that one for that now.
Bastien Montagne changed title from Transfer weights tooltip wrong to Operators doing several different things can only have one tooltip (see e.g. Transfer weights tooltip). 2021-03-02 14:36:42 +01:00

Added subscriber: @bbr20222

Added subscriber: @bbr20222

I was going to report the same bug and see that there is a fix that changes the tooltip depending on the use_reverse_transfer option. (Fix #85233).

But now I wonder where you can change this use_reverse_transfer option? There is no setting in the Adjust Last Operation popup.

After searching in the source I figured out that there are two menu entries that offer a weights transfer:

  • in Weight Paint mode, menu entry Weights > Transfer Weights -- this uses use_reverse_transfer=true as defined in scripts/startup/bl_ui/space_view3d.py and copies weights from all selected to the active object
  • in Object mode, menu entry Object > Link/Transfer Data > Transer Mesh Data -- this seems to use use_reverse_transfer=false and copies the weights from active to all selected objects

Wouldn't it be better to have a direction option (use_reverse_transfer) in the Adjust Last Operation popup dialog so users can see what's going on and can change it if needed?

I was going to report the same bug and see that there is a fix that changes the tooltip depending on the *use_reverse_transfer* option. (Fix #85233). But now I wonder where you can change this *use_reverse_transfer* option? There is no setting in the *Adjust Last Operation* popup. After searching in the source I figured out that there are two menu entries that offer a weights transfer: - in *Weight Paint* mode, menu entry *Weights > Transfer Weights* -- this uses *use_reverse_transfer=true* as defined in scripts/startup/bl_ui/space_view3d.py and copies weights from all selected to the active object - in *Object* mode, menu entry *Object > Link/Transfer Data > Transer Mesh Data* -- this seems to use *use_reverse_transfer=false* and copies the weights from active to all selected objects Wouldn't it be better to have a direction option (use_reverse_transfer) in the *Adjust Last Operation* popup dialog so users can see what's going on and can change it if needed?

This issue was referenced by 25ac6aa5e4

This issue was referenced by 25ac6aa5e4365f7b9467753b9fbc2c7ee4b636b7

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Bastien Montagne self-assigned this 2022-01-27 17:22:43 +01:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
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
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#85233
No description provided.