[Bf-blender-cvs] [907c289ec05] temp-T97352-3d-texturing-seam-bleeding-b2: Sculpt: add .sculpt to allow_procedural_attribute_access

Joseph Eagar noreply at git.blender.org
Tue Sep 20 10:32:09 CEST 2022


Commit: 907c289ec0538446aa026287e6fe3696092e2d41
Author: Joseph Eagar
Date:   Fri Sep 16 13:05:04 2022 -0700
Branches: temp-T97352-3d-texturing-seam-bleeding-b2
https://developer.blender.org/rB907c289ec0538446aa026287e6fe3696092e2d41

Sculpt: add .sculpt to allow_procedural_attribute_access

Also cleaned up a comment.

===================================================================

M	source/blender/blenkernel/intern/attribute_access.cc
M	source/blender/editors/sculpt_paint/sculpt_ops.c

===================================================================

diff --git a/source/blender/blenkernel/intern/attribute_access.cc b/source/blender/blenkernel/intern/attribute_access.cc
index 1e237da8119..3d88ecb6167 100644
--- a/source/blender/blenkernel/intern/attribute_access.cc
+++ b/source/blender/blenkernel/intern/attribute_access.cc
@@ -56,7 +56,7 @@ const char *no_procedural_access_message =
 
 bool allow_procedural_attribute_access(StringRef attribute_name)
 {
-  return !attribute_name.startswith(".selection") && !attribute_name.startswith(".hide");
+  return !attribute_name.startswith(".sculpt") && !attribute_name.startswith(".selection") && !attribute_name.startswith(".hide");
 }
 
 static int attribute_data_type_complexity(const eCustomDataType data_type)
diff --git a/source/blender/editors/sculpt_paint/sculpt_ops.c b/source/blender/editors/sculpt_paint/sculpt_ops.c
index 0731e54d533..52bfa61cd95 100644
--- a/source/blender/editors/sculpt_paint/sculpt_ops.c
+++ b/source/blender/editors/sculpt_paint/sculpt_ops.c
@@ -309,7 +309,10 @@ static void sculpt_init_session(Main *bmain, Depsgraph *depsgraph, Scene *scene,
   ob->sculpt = MEM_callocN(sizeof(SculptSession), "sculpt session");
   ob->sculpt->mode_type = OB_MODE_SCULPT;
 
-  /* Necessary to make multires displacement immediately visible. */
+  /* Trigger evaluation of modifier stack to ensure
+   * multires modifier sets .runtime.ccg in
+   * the evaluated mesh.
+   */
   DEG_id_tag_update(&ob->id, ID_RECALC_GEOMETRY);
 
   BKE_scene_graph_evaluated_ensure(depsgraph, bmain);



More information about the Bf-blender-cvs mailing list