Copy Modifiers sets Data Transfer mapping incorrectly #100472

Closed
opened 2022-08-17 23:49:23 +02:00 by Jan Kadeřábek · 10 comments

System Information
Operating system: Windows-10-10.0.19044-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 3060 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 512.15

Blender Version
Broken: version: 3.4.0 Alpha, branch: master, commit date: 2022-07-31 21:46, hash: ca172677b1
Worked: Probably never?

Short description of error
Link / Transfer Data (Ctrl L) -> Copy Modifiers seems to be using layers indices (instead of names) to set Data Transfer layer mapping (specifically layers_vcol_loop_select_dst).
As the result, if target (selected) objects use different layer indices, the mapping in created modifiers won't match.

Exact steps for others to reproduce the error
copy_modifier_layers_mapping_bug.blend

  • Open the attached .blend, there are 2 cubes, both having layers with the same name, just with flipped indices.
  • Copy the modifier by extending the selection to Cube1 (make active), Ctrl L -> Copy Modifiers.
  • Check the Data Transfer created on Cube2 and it's colors layers mapping - you can see the destination layer is different from the one in Cube1 Data Transfer
**System Information** Operating system: Windows-10-10.0.19044-SP0 64 Bits Graphics card: NVIDIA GeForce RTX 3060 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 512.15 **Blender Version** Broken: version: 3.4.0 Alpha, branch: master, commit date: 2022-07-31 21:46, hash: `ca172677b1` Worked: Probably never? **Short description of error** Link / Transfer Data (Ctrl L) -> Copy Modifiers seems to be using layers indices (instead of names) to set Data Transfer layer mapping (specifically *layers_vcol_loop_select_dst*). As the result, if target (selected) objects use different layer indices, the mapping in created modifiers won't match. **Exact steps for others to reproduce the error** [copy_modifier_layers_mapping_bug.blend](https://archive.blender.org/developer/F13398202/copy_modifier_layers_mapping_bug.blend) - Open the attached .blend, there are 2 cubes, both having layers with the same name, just with flipped indices. - Copy the modifier by extending the selection to Cube1 (make active), Ctrl L -> Copy Modifiers. - Check the Data Transfer created on Cube2 and it's colors layers mapping - you can see the destination layer is different from the one in Cube1 Data Transfer

Added subscriber: @JanKaderabek

Added subscriber: @JanKaderabek
Member

Added subscriber: @PratikPB2123

Added subscriber: @PratikPB2123
Member

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

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

In #84152#1086544, @mont29 wrote:
DataTransfer stores its operating layers as indices, there is nothing to be done here, and not a bug in any case

Hi, thanks for the report. As said in the above comment and in your report description, modifier uses indices and not the name
This is not a bug so closing your report. Feel free to comment if there is misunderstanding. I'll reopen the report in that case

> In #84152#1086544, `@mont29` wrote: > DataTransfer stores its operating layers as indices, there is nothing to be done here, and not a bug in any case Hi, thanks for the report. As said in the above comment and in your report description, modifier uses indices and not the name This is not a bug so closing your report. Feel free to comment if there is misunderstanding. I'll reopen the report in that case

Hi,
from the user standpoint I still consider this as a bug, as the result is not what user expects (it took some hours to even advanced user like me, to find out why my script which uses Link -> Copy Modifiers doesn't set mapping correctly).
Users work with layer names, not indices - I believe most users even don't know something like layer index exists, and even if they do, they can't manage them anyway.

If some action (like Copy Modifiers) gives unexpected results only because different layers order (which isn't even manageable), it should be considered as a bug in my opinion, despite it makes sense technically.
Even in Python you set dst and src layers by name.

Hi, from the user standpoint I still consider this as a bug, as the result is not what user expects (it took some hours to even advanced user like me, to find out why my script which uses Link -> Copy Modifiers doesn't set mapping correctly). Users work with layer names, not indices - I believe most users even don't know something like layer index exists, and even if they do, they can't manage them anyway. If some action (like Copy Modifiers) gives unexpected results only because different layers order (which isn't even manageable), it should be considered as a bug in my opinion, despite it makes sense technically. Even in Python you set *dst* and *src* layers by name.
Member

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

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

Added subscriber: @iss

Added subscriber: @iss

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

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

Unfortunately due to number of existing bugs we use strict definition of what bug is. I appreciate the report and would agree, that it could work better, But this is a request for improved behavior and not a bug in current behavior. This bug tracker is only for bugs and errors.

For user requests and feedback, please use other channels: https://wiki.blender.org/wiki/Communication/Contact#User_Feedback_and_Requests
For more information on why this isn't considered a bug, visit: https://wiki.blender.org/wiki/Reference/Not_a_bug

Unfortunately due to number of existing bugs we use strict definition of what bug is. I appreciate the report and would agree, that it could work better, But this is a request for improved behavior and not a bug in current behavior. This bug tracker is only for bugs and errors. For user requests and feedback, please use other channels: https://wiki.blender.org/wiki/Communication/Contact#User_Feedback_and_Requests For more information on why this isn't considered a bug, visit: https://wiki.blender.org/wiki/Reference/Not_a_bug

We have a narrow view of what is considered a bug, typically this is limited to something that doesn't work as intended.
Is it intended that Copy Modifiers creates modifiers with different settings?
But I understand there are more important issues to fix.
Thanks for your time anyway.

*We have a narrow view of what is considered a bug, typically this is limited to something that doesn't work as intended*. Is it intended that Copy Modifiers creates modifiers with different settings? But I understand there are more important issues to fix. Thanks for your time anyway.
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
3 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#100472
No description provided.