[Bf-blender-cvs] [214e802f5f3] sculpt-dev: Sculpt Expand: More comment on ExpandCache
Pablo Dobarro
noreply at git.blender.org
Wed Feb 17 17:51:07 CET 2021
Commit: 214e802f5f3a2950c5bfb5ff184897fb6085b820
Author: Pablo Dobarro
Date: Wed Feb 17 17:50:18 2021 +0100
Branches: sculpt-dev
https://developer.blender.org/rB214e802f5f3a2950c5bfb5ff184897fb6085b820
Sculpt Expand: More comment on ExpandCache
===================================================================
M source/blender/editors/sculpt_paint/sculpt_expand.c
M source/blender/editors/sculpt_paint/sculpt_intern.h
===================================================================
diff --git a/source/blender/editors/sculpt_paint/sculpt_expand.c b/source/blender/editors/sculpt_paint/sculpt_expand.c
index 013ebd8fbf3..c9483859377 100644
--- a/source/blender/editors/sculpt_paint/sculpt_expand.c
+++ b/source/blender/editors/sculpt_paint/sculpt_expand.c
@@ -13,7 +13,7 @@
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
- * The Original Code is Copyright (C) 2020 Blender Foundation.
+ * The Original Code is Copyright (C) 2021 Blender Foundation.
* All rights reserved.
*/
diff --git a/source/blender/editors/sculpt_paint/sculpt_intern.h b/source/blender/editors/sculpt_paint/sculpt_intern.h
index 8574767d41c..e40568b8696 100644
--- a/source/blender/editors/sculpt_paint/sculpt_intern.h
+++ b/source/blender/editors/sculpt_paint/sculpt_intern.h
@@ -1204,14 +1204,21 @@ typedef struct ExpandCache {
*/
bool all_enabled;
+ /* Initial mouse and cursor data from where the current falloff started. This data can be changed
+ * during the execution of Expand by moving the origin. */
float initial_mouse_move[2];
float initial_mouse[2];
int initial_active_vertex;
int initial_active_face_set;
+ /* Face set ID that is going to be used when creating a new Face Set. */
int next_face_set;
+
+ /* Face Set ID of the Face set selected for editing. */
int update_face_set;
+ /* Mouse position since the last time the origin was moved. Used for reference when moving the
+ * intial position of Expand. */
float original_mouse_move[2];
/* Active components checks. */
@@ -1259,7 +1266,7 @@ typedef struct ExpandCache {
bool move;
/* When set to true, Expand will snap the new data to the Face Sets IDs found in
- * *initial_face_sets. */
+ * *original_face_sets. */
bool snap;
/* When set to true, Expand will use the current Face Set ID to modify an existing Face Set
More information about the Bf-blender-cvs
mailing list