Broken material assigment after changing mesh-linking to object-linking #98834

Open
opened 2022-06-13 01:14:29 +02:00 by Antoine · 7 comments

System Information
Windows 11
Nvidia RTX 2060 super

Blender Version
Broken: blender-3.2.0-stable+daily.e05e1e369187

Short description of error
bug_slots.gif
On objects with multiple material slots, the currently selected slot gets bugged when switching from object-linking to mesh-linking. It allows the user to select a different material for each link type, which seems to trigger the bug and has lingering effects. For example, in geometry-nodes setting the material becomes unpredicatable, with material names seemingly swapped.

Exact steps for others to reproduce the error
From the provided blend file or startup scene:

  1. create a new material slot
  2. pick a material for this slot
  3. swap the material link type between object-link and mesh-link
  4. select a different material for the same slot
    The material or slot is now bugged. Geo nodes 'set material' will become unpredictable.

bug_slots.blend

**System Information** Windows 11 Nvidia RTX 2060 super **Blender Version** Broken: blender-3.2.0-stable+daily.e05e1e369187 **Short description of error** ![bug_slots.gif](https://archive.blender.org/developer/F13152899/bug_slots.gif) On objects with multiple material slots, the currently selected slot gets bugged when switching from object-linking to mesh-linking. It allows the user to select a different material for each link type, which seems to trigger the bug and has lingering effects. For example, in geometry-nodes setting the material becomes unpredicatable, with material names seemingly swapped. **Exact steps for others to reproduce the error** From the provided blend file or startup scene: 1. create a new material slot 2. pick a material for this slot 3. swap the material link type between object-link and mesh-link 4. select a different material for the same slot The material or slot is now bugged. Geo nodes 'set material' will become unpredictable. [bug_slots.blend](https://archive.blender.org/developer/F13152939/bug_slots.blend)
Author

Added subscriber: @AntoineP

Added subscriber: @AntoineP
Member

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

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

Added subscriber: @PratikPB2123

Added subscriber: @PratikPB2123
Member

Added subscriber: @JacquesLucke

Added subscriber: @JacquesLucke
Member

Unfortunately, this is a general problem with trying to use fixed material indices while also using nodes that have to move materials slots around. Generally, nodes like Set Material or Join Geometry make node guarantees about what material slots the output uses. We have the unofficial plan to remove the object-linking feature for materials at some point. That's because the same functionality can be achieved with Geometry Nodes nowadays.

Unfortunately, this is a general problem with trying to use fixed material indices while also using nodes that have to move materials slots around. Generally, nodes like Set Material or Join Geometry make node guarantees about what material slots the output uses. We have the unofficial plan to remove the object-linking feature for materials at some point. That's because the same functionality can be achieved with Geometry Nodes nowadays.
Member

Added subscriber: @HooglyBoogly

Added subscriber: @HooglyBoogly
Member

I made a task for that plan: #99996

I made a task for that plan: #99996
Philipp Oeser removed the
Interest
Nodes & Physics
label 2023-02-10 08:43:59 +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
4 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#98834
No description provided.