[Bf-blender-cvs] [7a005e089da] master: Sculpt: fix crash when instancing sculpt objects
Joseph Eagar
noreply at git.blender.org
Sat Oct 15 00:00:48 CEST 2022
Commit: 7a005e089daf068c6b400bfa96ac39d4240f3516
Author: Joseph Eagar
Date: Fri Oct 14 14:34:46 2022 -0700
Branches: master
https://developer.blender.org/rB7a005e089daf068c6b400bfa96ac39d4240f3516
Sculpt: fix crash when instancing sculpt objects
===================================================================
M source/blender/blenkernel/intern/pbvh.c
===================================================================
diff --git a/source/blender/blenkernel/intern/pbvh.c b/source/blender/blenkernel/intern/pbvh.c
index b23fe53e80c..b73f0746621 100644
--- a/source/blender/blenkernel/intern/pbvh.c
+++ b/source/blender/blenkernel/intern/pbvh.c
@@ -719,6 +719,11 @@ PBVH *BKE_pbvh_new(PBVHType type)
pbvh->respect_hide = true;
pbvh->draw_cache_invalid = true;
pbvh->header.type = type;
+
+ /* Initialize this to true, instead of waiting for a draw engine
+ * to set it. Prevents a crash in draw manager instancing code.
+ */
+ pbvh->is_drawing = true;
return pbvh;
}
More information about the Bf-blender-cvs
mailing list