Blender Git Commit Log

Git Commits -> Revision b35446c

Revision b35446c by Sergey Sharybin (master)
January 27, 2012, 08:04 (GMT)
Fix #30000: Boolean modifier messing up multi material

Issue was caused by resetting face's mat_nr to zero if there's no material
map sent to ConvertCSGDescriptorsToDerivedMesh. In case of boolean modifier
we can't use such map because we can't affect on materials present in object.

So the only way which can give reasonable result is:
- Dot change mat_nr for faces from left operand (they should be fine, because
materials aren't deleting by modifier)
- For faces from right operand check if needed material exists in left operand
and if so, use it's index as new mat_nr.
- If there are materials in right operand which doesn't exist in left operand,
they'll be changed to first material from left operand.

Commit Details:

Full Hash: b35446c3fa84ec0b817be1aaf356c3e3a5071285
SVN Revision: 43739
Parent Commit: 959f262
Lines Changed: +29, -3

1 Modified Path:

/source/blender/modifiers/intern/MOD_boolean_util.c (+29, -3) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021