Blender Git Loki

Git Commits -> Revision f1cf706

Revision f1cf706 by Erik Abrahamsson (master)
April 25, 2021, 16:31 (GMT)
Fix unreported "Convert Mesh to Gpencil" when fill material already exists

If an object named for example `Suzanne` is converted to Gpencil, a material called `Suzanne_Fill` will be created for the gpencil fill.
When this material already exists, the new material will be called `Suzanne_Fill.001` and the operator will not see that this material is already present the next iteration. This leads to a new material being created for every polygon.

This commit changes the code to search for a material starting with `ObjectName_Fill` instead of being equal to.

Reviewed By: filedescriptor, antoniov

Differential Revision: https://developer.blender.org/D11067

Commit Details:

Full Hash: f1cf706758e333040d4d2d5dd368b4db511a25b5
Parent Commit: f7afd78
Committed By: Antonio Vazquez
Lines Changed: +1, -1

1 Modified Path:

/source/blender/blenkernel/intern/gpencil_geom.c (+1, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021