Unlinking material and copying new one leaves mesh with no material applied unless mat. list cleanup #72669

Closed
opened 2019-12-24 11:21:16 +01:00 by Olivier Lau · 4 comments

Operating system: Windows 10
Graphics card: nvidia RTX 2080
Broken: 2.81a

Unlinking a material from a mesh then copying another material over it places it in second position in material list hence material is not being applied. This is especially annoying as copying objects duplicates the material which needs to be removed and replaced.

Exact steps for others to reproduce the error

  1. open the attached sample.blend, use the Rendered view mode to see textures
  2. duplicate the object "Cube reference" using CTRL+C and CTRL+V
  3. select the cube copy object, notice the material has been duplicated, unlink this material
  4. drag&drop material GreenTex from "Cube reference" onto the cube copy object

Expected result:
The cube copy object would show textured.

Actual result:
The cube copy doesn't show the texture.

Discussion:
The reason why the cube copy doesn't show up with the copied material is because the unlink left a blank material entry in the object's material list, the subsequent material copy added the material in second position, which does not show up. Removing the first material position (the empty one) brings the copied material in first position and it shows up properly.

This is not a defect per se but an implementation making things clumsy. There are basically two user interaction issues there:

  • the fact that duplicating an object also duplicates its material is not wanted in many situations, there should be in the first place a modifier key or something enabling to duplicate an object without creating a new material.
  • unlinking the material leaving an empty material slot in the object's material list, this is probably worth reconsidering.sample.zip
Operating system: Windows 10 Graphics card: nvidia RTX 2080 Broken: 2.81a Unlinking a material from a mesh then copying another material over it places it in second position in material list hence material is not being applied. This is especially annoying as copying objects duplicates the material which needs to be removed and replaced. **Exact steps for others to reproduce the error** 1. open the attached sample.blend, use the Rendered view mode to see textures 2. duplicate the object "Cube reference" using CTRL+C and CTRL+V 3. select the cube copy object, notice the material has been duplicated, unlink this material 4. drag&drop material GreenTex from "Cube reference" onto the cube copy object Expected result: The cube copy object would show textured. Actual result: The cube copy doesn't show the texture. Discussion: The reason why the cube copy doesn't show up with the copied material is because the unlink left a blank material entry in the object's material list, the subsequent material copy added the material in second position, which does not show up. Removing the first material position (the empty one) brings the copied material in first position and it shows up properly. This is not a defect per se but an implementation making things clumsy. There are basically two user interaction issues there: - the fact that duplicating an object also duplicates its material is not wanted in many situations, there should be in the first place a modifier key or something enabling to duplicate an object without creating a new material. - unlinking the material leaving an empty material slot in the object's material list, this is probably worth reconsidering.[sample.zip](https://archive.blender.org/developer/F8242152/sample.zip)
Author

Added subscriber: @ilio

Added subscriber: @ilio

Added subscriber: @mano-wii

Added subscriber: @mano-wii

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

Changed status from 'Needs Triage' to: 'Archived'
Germano Cavalcante self-assigned this 2019-12-27 16:24:12 +01:00

Although not convenient, this is not a bug.

I suppose you try to do material operations using the outliner, but the outliner is not supposed to be used for this. It is only used to organize relationships between IDs.
The materials and their slots are worked in the properties editor .

For suggestions on how to improve the UI, please use other channels:
https://wiki.blender.org/wiki/Communication/Contact#User_Feedback_and_Requests

Although not convenient, this is not a bug. I suppose you try to do material operations using the outliner, but the outliner is not supposed to be used for this. It is only used to organize relationships between IDs. The materials and their slots are worked in the [properties editor ](https://docs.blender.org/manual/en/latest/editors/properties_editor.html#object-shading). For suggestions on how to improve the UI, please use other channels: https://wiki.blender.org/wiki/Communication/Contact#User_Feedback_and_Requests
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
2 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#72669
No description provided.