"Join Meshes" changes the material slot assigned to faces of the original mesh #85578

Open
opened 2021-02-12 10:10:37 +01:00 by Ilja Razinkov · 6 comments

System Information
Operating system: MacOs BigSur

Blender Version
Broken: 2.91.2

Short description of error
See video:
Screen Recording 2021-02-12 at 12.04.24.mov

Exact steps for others to reproduce the error

  1. Create Mesh ONE with 2 material slots, with the same material, each slot assigned to different mesh island in mesh.
    So faces on mesh islands have different material_indexes, although both use the same material (in different material slots)
  2. Create Mesh TWO without any materials
  3. Join Mesh TWO into Mesh ONE
  4. Check material indexes in resulted mesh. They wil ALL point to first material slots.
    Faces, that was linked to second material slot initially will be "relinked" to first slot, so theier material_index attributes are altered/messed

Expected behaviour:
Faces linked to second material slot initially should stay with the same material_index, join action has no reason to change them

**System Information** Operating system: MacOs BigSur **Blender Version** Broken: 2.91.2 **Short description of error** See video: [Screen Recording 2021-02-12 at 12.04.24.mov](https://archive.blender.org/developer/F9793793/Screen_Recording_2021-02-12_at_12.04.24.mov) **Exact steps for others to reproduce the error** 1) Create Mesh ONE with 2 material slots, with the same material, each slot assigned to different mesh island in mesh. So faces on mesh islands have different material_indexes, although both use the same material (in different material slots) 2) Create Mesh TWO without any materials 3) Join Mesh TWO into Mesh ONE 4) Check material indexes in resulted mesh. They wil ALL point to first material slots. Faces, that was linked to second material slot initially will be "relinked" to first slot, so theier material_index attributes are altered/messed **Expected behaviour:** Faces linked to second material slot initially should stay with the same material_index, join action has no reason to change them
Author

Added subscriber: @IPv6

Added subscriber: @IPv6
Germano Cavalcante changed title from "Join Meshes" action messing up material indexes on resulted mesh to "Join Meshes" changes the material slot assigned to faces of the original mesh 2021-02-16 16:00:09 +01:00

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

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

Added subscriber: @mano-wii

Added subscriber: @mano-wii
Philipp Oeser removed the
Interest
Modeling
label 2023-02-09 15:28:42 +01:00

I'm facing an issue that might be related to this (tested in 4.1 alpha). I'm working on a project that requires programmatically linking and unlinking materials from slots. When joining (Ctrl + J) a mesh with two materials into another with multiple unlinked slots, I noticed (unfortunately too late) that most of them got scrambled. Thankfully the issue doesn't seem to happen if all slots have materials assigned to them.

Is there any way this can get looked into? I don't know much about Blender's inner workings but this seems like a relatively simple bug to fix.

I'm facing an issue that might be related to this (tested in 4.1 alpha). I'm working on a project that requires programmatically linking and unlinking materials from slots. When joining (Ctrl + J) a mesh with two materials into another with multiple unlinked slots, I noticed (unfortunately too late) that most of them got scrambled. Thankfully the issue doesn't seem to happen if all slots have materials assigned to them. Is there any way this can get looked into? I don't know much about Blender's inner workings but this seems like a relatively simple bug to fix. <video src="/attachments/f16e599e-ed72-4b68-af3e-deaa76fab1c4" title="2023-12-14 22-36-54.mp4" controls></video>

This is not issue for geometry nodes, fix could be in replacing this operator by geometry nodes tool.

This is not issue for geometry nodes, fix could be in replacing this operator by geometry nodes tool.

GN is even worse. #106578 #91048 #99197

I had to give up on using it for my project because I ran into a lot of issues (which just like this one have been reported a long time ago and are still not fixed).

GN is even worse. #106578 #91048 #99197 I had to give up on using it for my project because I ran into a lot of issues (which just like this one have been reported a long time ago and are still not fixed).
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#85578
No description provided.