Blender Git Commit Log
Git Commits -> Revision a01fb22
Revision a01fb22 by Howard Trickey (master) March 14, 2021, 17:20 (GMT) |
Fix T86427 Exact solver does not apply target material. I had done some experiments to see what Fast boolean did for material mapping and thought it just used the same slot in the target as the slot in the source. The truth is more complicated: if the target material exists in any slot of the destination, we need to remap to whatever slot has the matching material. I fixed Exact Boolean to do this. Since the materials may be in the object, this means that BKE_mesh_boolean had to get another argument, the remapping arrays. I will note that the current behavior of Fast, and now Exact, is not ideal. Ideally, if the source material does not exist in the target, a new material slot should be created in the target and the source material copied there (and incrementing the material's reference count). Maybe a future project, but for now, I want the behavior of Exact to match that of Fast. |
Commit Details:
Full Hash: a01fb22f28df21acab103a5216591355b1dc85d7
Parent Commit: 8936550
Lines Changed: +71, -6