[Bf-blender-cvs] [0598a4b3606] sculpt-dev: sculpt-dev: Fix code being in wrong order
Joseph Eagar
noreply at git.blender.org
Thu Oct 6 10:24:38 CEST 2022
Commit: 0598a4b3606e394d086ca5d100bbae8371e15a86
Author: Joseph Eagar
Date: Thu Oct 6 01:21:20 2022 -0700
Branches: sculpt-dev
https://developer.blender.org/rB0598a4b3606e394d086ca5d100bbae8371e15a86
sculpt-dev: Fix code being in wrong order
===================================================================
M source/blender/blenkernel/intern/paint.cc
===================================================================
diff --git a/source/blender/blenkernel/intern/paint.cc b/source/blender/blenkernel/intern/paint.cc
index 34557276441..0583068108f 100644
--- a/source/blender/blenkernel/intern/paint.cc
+++ b/source/blender/blenkernel/intern/paint.cc
@@ -2896,10 +2896,10 @@ PBVH *BKE_sculpt_object_pbvh_ensure(Depsgraph *depsgraph, Object *ob)
}
BKE_pbvh_set_pmap(pbvh, ob->sculpt->pmap);
- sculpt_attribute_update_refs(ob);
-
ob->sculpt->pbvh = pbvh;
+ sculpt_attribute_update_refs(ob);
+
if (pbvh) {
SCULPT_update_flat_vcol_shading(ob, scene);
}
More information about the Bf-blender-cvs
mailing list