diff options
author | Ethan Hall <Ethan1080> | 2022-05-12 12:35:10 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-05-12 12:35:10 +0300 |
commit | c21cc4dad5c83354d96ba3a97385756c737289b9 (patch) | |
tree | 9af6651875b9d9f12ece5099a4d38c3a59bf5f61 /source/blender/modifiers | |
parent | cb5b33a627d922019ded5765032baf182cee54a2 (diff) |
Fix: Paint slot material assignment issues
There are two problems when adding a paint slot to an object without an
existing material. First, the `invoke` method creates a material on the
object. This modifies the object even if the operation is not executed.
Second, the fill color defaults to black when there is no existing
material (even when adding a normal, bump, or displacement layer).
This patch moves the material creation to the `exec` method.
When no material exists on the object, a default Principled BSDF is
referenced for default colors in the `invoke` method.
Differential Revision: https://developer.blender.org/D14828
Diffstat (limited to 'source/blender/modifiers')
0 files changed, 0 insertions, 0 deletions