Blender Git Commit Log

Git Commits -> Revision 9c1da81

Revision 9c1da81 by Bastien Montagne (master)
July 28, 2020, 16:31 (GMT)
Fix T54544: "Copy Materials to Selected" only works when materials are defined on the mesh.

Build a temp matarray storing materials from obdata and source object
(depending on slots 'allocation' of source object), and assign those to
targets.

Also remove limitation of 'using same obdata is forbidden', just never
edit obdata materials in that case...

Certainly not perfect, but already much better than existing code.

Commit Details:

Full Hash: 9c1da81a4c173437c1e556afde7b32eef4b0a47d
Parent Commit: 5d88f8e
Lines Changed: +34, -10

4 Modified Paths:

/source/blender/blenkernel/BKE_material.h (+2, -1) (Diff)
/source/blender/blenkernel/intern/material.c (+11, -2) (Diff)
/source/blender/editors/mesh/editmesh_tools.c (+4, -2) (Diff)
/source/blender/editors/render/render_shading.c (+17, -5) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021