From 32f5fdce0a0a571a39198edf8d7b5d719bf59f2c Mon Sep 17 00:00:00 2001 From: Thomas Dinges <thomasdinges@noreply.localhost> Date: Mon, 16 Dec 2024 22:10:40 +0100 Subject: [PATCH] Revert "Fix #128257: Crash when using Set Vertex Colors with no brush" This reverts commit 8d11882d079e50b69a579361a3bb7ffa847d9265. The previous commit was misguided. As explained in #131893 and #131924 the desire for the various paint modes is to allow color operations regardless of the tool that is currently selected. Pull Request: https://projects.blender.org/blender/blender/pulls/131983 --- source/blender/editors/sculpt_paint/paint_vertex.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/editors/sculpt_paint/paint_vertex.cc b/source/blender/editors/sculpt_paint/paint_vertex.cc index 99cdf831631..05dc447dd53 100644 --- a/source/blender/editors/sculpt_paint/paint_vertex.cc +++ b/source/blender/editors/sculpt_paint/paint_vertex.cc @@ -2315,7 +2315,7 @@ void PAINT_OT_vertex_color_set(wmOperatorType *ot) ot->description = "Fill the active vertex color layer with the current paint color"; ot->exec = vertex_color_set_exec; - ot->poll = vertex_paint_poll; + ot->poll = vertex_paint_mode_poll; ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; -- GitLab