GPencil: Fix wrong Brush texture for pinned materials
authorAntonioya <blendergit@gmail.com>
Sun, 7 Apr 2019 15:02:13 +0000 (17:02 +0200)
committerAntonioya <blendergit@gmail.com>
Sun, 7 Apr 2019 15:02:13 +0000 (17:02 +0200)
commit75f551facaf0a103b169ccc955b57099bd33a16a
tree3cde3d8a4e814bbb3049cf3266eb3a85ba177c44
parent13eb2e964014e2d8bd02767cc91baf92b93c9611
GPencil: Fix wrong Brush texture for pinned materials

If the Brush had a pinned material with texture, but the material slot was in a different material, the texture was not working.

The material was not recovered from brush, but from object.
source/blender/draw/engines/gpencil/gpencil_engine.c