diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-01-27 12:04:03 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-01-27 12:04:03 +0400 |
commit | b35446c3fa84ec0b817be1aaf356c3e3a5071285 (patch) | |
tree | c36b2a0b6f0c83b1f6b3b10035a3338a3b222ab0 /source/blender/blenkernel/BKE_customdata.h | |
parent | 959f2624ca58839ae8cc5ac6e13162759e5dc759 (diff) |
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.
Diffstat (limited to 'source/blender/blenkernel/BKE_customdata.h')
0 files changed, 0 insertions, 0 deletions