Blender Git Commit Log

Git Commits -> Revision c29f9e1

Revision c29f9e1 by Bastien Montagne (master)
November 3, 2021, 17:15 (GMT)
Fix T92780: Lost material in case of local object, and missing linked obdata.

By default, when syncing materials slots between object and its obdata,
the amount of slots in obdata is the reference.

Missing linked obdata is replaced by an empty placeholder that has no
material. In that specific case, if we have a valid object ID, we want
to update the (placeholder) obdata's material count from the object one,
and not the other way around.

Commit Details:

Full Hash: c29f9e14e4180af0fbba83d66e08c9852da7fa9c
Parent Commit: d171285
Lines Changed: +11, -1

1 Modified Path:

/source/blender/blenkernel/intern/material.c (+11, -1) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021