Commit: 7119582b6686542f75858d48266a2a5a8664f8c0
Author: Joseph Eagar
Date:   Tue Oct 11 09:57:34 2022 -0700
Branches: master
https://developer.blender.org/rB7119582b6686542f75858d48266a2a5a8664f8c0

Sculpt: Fix T101595: sculpt_attribute_update_refs called in wrong place

Needs to go after the assignment to ob->sculpt->pbvh, not before.

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

M       source/blender/blenkernel/intern/paint.cc

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

diff --git a/source/blender/blenkernel/intern/paint.cc 
b/source/blender/blenkernel/intern/paint.cc
index 00535ea5528..fbb7642c067 100644
--- a/source/blender/blenkernel/intern/paint.cc
+++ b/source/blender/blenkernel/intern/paint.cc
@@ -2287,9 +2287,9 @@ PBVH *BKE_sculpt_object_pbvh_ensure(Depsgraph *depsgraph, 
Object *ob)
   }
 
   BKE_pbvh_pmap_set(pbvh, ob->sculpt->pmap);
-  sculpt_attribute_update_refs(ob);
-
   ob->sculpt->pbvh = pbvh;
+
+  sculpt_attribute_update_refs(ob);
   return pbvh;
 }

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to