Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Abrahamsson <erik85>2021-04-25 19:30:27 +0300
committerAntonio Vazquez <blendergit@gmail.com>2021-04-25 19:31:36 +0300
commitf1cf706758e333040d4d2d5dd368b4db511a25b5 (patch)
treed16dbc2e329f9001cb946a5dd4e79ad4f54290bd /source/blender/editors/space_node/node_edit.c
parentf7afd78b80e5649a9fb7e19cf42e842b2429e721 (diff)
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
Diffstat (limited to 'source/blender/editors/space_node/node_edit.c')
0 files changed, 0 insertions, 0 deletions