Blender Git Loki
Git Commits -> Revision a0fa3de
Revision a0fa3de by Tamito Kajiyama (master) March 9, 2015, 03:53 (GMT) |
Fix T43624: Freestyle uses wrong colour on second Line Set with textured lines in Cycles. This is a regression introduced by rBd8b00a3bf5c1 (Freestyle: memory consumption optimization in stroke rendering). The issue was caused by uninitialized MPoly::mat_nr values. Before the stroke rendering optimization, individual Freestyle strokes were represented by distinct mesh objects, and thus MPoly::mat_nr was left unset (i.e., was always zero). Now that the stroke rendering optimization has been done and mesh objects may represent multiple strokes of different materials, MPoly::mat_nr had to be properly set to the material index that refers to the material of the poly face. |
Commit Details:
Full Hash: a0fa3de267f8c09ed6c7a72716d9dab49dfd4c2c
Parent Commit: ec18021
Lines Changed: +2, -1
1 Modified Path:
/source/blender/freestyle/intern/blender_interface/BlenderStrokeRenderer.cpp (+2, -1) (Diff)