[Bf-blender-cvs] [9e77eb2614c] temp-sculpt-normals-masking: temp-sculpt-normals-masking: fix crash
Joseph Eagar
noreply at git.blender.org
Sun Jul 17 00:09:48 CEST 2022
Commit: 9e77eb2614ceeb21ccb61a822f7dc67153baf646
Author: Joseph Eagar
Date: Mon Jul 11 03:41:56 2022 -0700
Branches: temp-sculpt-normals-masking
https://developer.blender.org/rB9e77eb2614ceeb21ccb61a822f7dc67153baf646
temp-sculpt-normals-masking: fix crash
===================================================================
M source/blender/editors/sculpt_paint/sculpt.c
===================================================================
diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c
index 09fba87aff2..9d307a52998 100644
--- a/source/blender/editors/sculpt_paint/sculpt.c
+++ b/source/blender/editors/sculpt_paint/sculpt.c
@@ -5916,6 +5916,11 @@ void SCULPT_automasking_node_begin(Object *ob,
AutomaskingNodeData *node_data,
PBVHNode *node)
{
+ if (!automasking) {
+ memset(node_data, 0, sizeof(*node_data));
+ return;
+ }
+
node_data->node = node;
node_data->have_orig_data = automasking->settings.flags &
(BRUSH_AUTOMASKING_BRUSH_NORMAL | BRUSH_AUTOMASKING_VIEW_NORMAL);
More information about the Bf-blender-cvs
mailing list