Blender Git Commit Log

Git Commits -> Revision 406e960

Revision 406e960 by Antonio Vazquez (master)
July 30, 2019, 14:51 (GMT)
Fix T67904: GPencil clone brush doesn't copy the right color and layer

When using the clone brush, the first time the brush worked, but the next time no. The reasons were two:

1) The strokes were copied to the active layer, but if there were more than one layer, the stroke must be copied to the original layer.

2) The materials were not assigned properly and the materials were set as the first slot in the list always.

Now, the original layer name is used to try to find the same layer in destination. If the layer is missing, the active layer is used.

For materials, the bug in the hash lookup is fixed and the material is assigned to the right slot.

Commit Details:

Full Hash: 406e960327191b548f736382571ed55cff91bc2c
Parent Commit: 77cc69d
Lines Changed: +17, -7

1 Modified Path:

/source/blender/editors/gpencil/gpencil_brush.c (+17, -7) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021