Copy material to selected doesn't copy whether the material slot is object or data #119582

Open
opened 2024-03-17 01:12:26 +01:00 by Rui Liu · 6 comments

System Information
Operating system: Windows 11
Graphics card: RTX 4090 Laptop

Blender Version
Broken: 4.0.2

Short description of error
As title.

Exact steps for others to reproduce the error

  1. Create the first object.
  2. Duplicate and link the mesh to creat the second object.
  3. Create a material slot on the first object.
  4. Set the material slot to be object level.
  5. Select two object with the first object active.
  6. Copy the material to selected (under the materials properties tab).
  7. The second object has a material slot created at data/mesh level.

I didn't test the ctrl-L link functionality, possibly have same issue. There might also be some buggy behaviours when you delete a material slot when slot is on object level. The slots on the second object shouldn't be deleted.

**System Information** Operating system: Windows 11 Graphics card: RTX 4090 Laptop **Blender Version** Broken: 4.0.2 **Short description of error** As title. **Exact steps for others to reproduce the error** 1. Create the first object. 2. Duplicate and link the mesh to creat the second object. 3. Create a material slot on the first object. 4. Set the material slot to be object level. 5. Select two object with the first object active. 6. Copy the material to selected (under the materials properties tab). 7. The second object has a material slot created at data/mesh level. I didn't test the ctrl-L link functionality, possibly have same issue. There might also be some buggy behaviours when you delete a material slot when slot is on object level. The slots on the second object shouldn't be deleted.
Rui Liu added the
Priority
Normal
Type
Report
Status
Needs Triage
labels 2024-03-17 01:12:27 +01:00
Iliya Katushenock added the
Interest
Core
Interest
Modeling
labels 2024-03-17 07:00:08 +01:00

Thanks for report, i can not confirm that, material always copied to slot on object data for me.

Thanks for report, i can not confirm that, material always copied to slot on object data for me.

I can reproduce, but not sure whether this would be a bug or not. Would have to check the code.

I can reproduce, but not sure whether this would be a bug or not. Would have to check the code.

I have checked the code and there are basically 3 scenarios, of which 1 I don't quite understand, and I am second guessing if I understood this report correctly - In second step, what exactly do you mean by duplicate and link?

But for case when you have 2 objects with no relation to each other, it does this:
If there is material slot, it copies material to this slot, and does not change if this is object or mesh data.
If there is no slot, it makes new slot and data is linked to what is set in preferences > Editing > Objects.

I have checked the code and there are basically 3 scenarios, of which 1 I don't quite understand, and I am second guessing if I understood this report correctly - In second step, what exactly do you mean by duplicate and link? But for case when you have 2 objects with no relation to each other, it does this: If there is material slot, it copies material to this slot, and does not change if this is object or mesh data. If there is no slot, it makes new slot and data is linked to what is set in preferences > Editing > Objects.
Richard Antalik added
Status
Needs Information from User
and removed
Status
Needs Triage
labels 2024-03-25 21:18:20 +01:00
Author

By "duplicate and link" I mean Alt-D.

By "duplicate and link" I mean Alt-D.

Ok I see what you mean now, so you only add material slot and not assign any material, right? But then slot will be created on other object in step 3 already. And not change after step 4.

From what I can see, slots are property of mesh only. So if objects share mesh, if you remove a slot, this means both objects will loose it.
I guess this is due to historic reasons, but I would also say, that manual should reflect this.

Ok I see what you mean now, so you only add material slot and not assign any material, right? But then slot will be created on other object in step 3 already. And not change after step 4. From what I can see, slots are property of mesh only. So if objects share mesh, if you remove a slot, this means both objects will loose it. I guess this is due to historic reasons, but I would also say, that manual should reflect this.

Will confirm, at least because this could be mentioned in manual and as mentioned, slot removal in these cases may lead to loss of work if unnoticed.

Will confirm, at least because this could be mentioned in manual and as mentioned, slot removal in these cases may lead to loss of work if unnoticed.
Richard Antalik added
Status
Confirmed
and removed
Status
Needs Information from User
labels 2024-03-27 19:28:12 +01:00
Philipp Oeser added the
Module
Modeling
label 2024-04-02 10:59:20 +02: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
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#119582
No description provided.