From 18e3615a68191c9f35303139d109972744499565 Mon Sep 17 00:00:00 2001 From: Pablo Dobarro Date: Mon, 9 Mar 2020 20:10:56 +0100 Subject: Face Sets: Use white color for a default Face Set to enable the overlay This introduces a variable to store a face set ID which is going to be rendered white. When initializing a mesh or randomizing the colors, this variable gets updated to always render a white face set. This way the face set overlay can be enabled without adding colors to the mesh if face sets are not in use. After creating the first face set, new colors are generated randomly like usual. The face set stored as default does not have any special meaning for tools or brushes, it just affects the rendering color. Reviewed By: brecht Differential Revision: https://developer.blender.org/D7035 --- source/blender/blenkernel/intern/pbvh_intern.h | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/blenkernel/intern/pbvh_intern.h') diff --git a/source/blender/blenkernel/intern/pbvh_intern.h b/source/blender/blenkernel/intern/pbvh_intern.h index 51342eb1faa..af92f11e219 100644 --- a/source/blender/blenkernel/intern/pbvh_intern.h +++ b/source/blender/blenkernel/intern/pbvh_intern.h @@ -137,6 +137,7 @@ struct PBVH { CustomData *pdata; int face_sets_color_seed; + int face_sets_color_default; /* Grid Data */ CCGKey gridkey; -- cgit v1.2.3