[Bf-blender-cvs] [abac69b89c1] hair_guides_grooming: Fix crash when creating guide curves on an empty groom object.
Lukas Tönne
noreply at git.blender.org
Wed Jun 27 16:40:08 CEST 2018
Commit: abac69b89c13516b3a97b9160339e052a55042db
Author: Lukas Tönne
Date: Wed Jun 27 15:39:42 2018 +0100
Branches: hair_guides_grooming
https://developer.blender.org/rBabac69b89c13516b3a97b9160339e052a55042db
Fix crash when creating guide curves on an empty groom object.
===================================================================
M source/blender/blenkernel/intern/groom.c
===================================================================
diff --git a/source/blender/blenkernel/intern/groom.c b/source/blender/blenkernel/intern/groom.c
index 13689e3285c..f7929c4b359 100644
--- a/source/blender/blenkernel/intern/groom.c
+++ b/source/blender/blenkernel/intern/groom.c
@@ -1411,7 +1411,10 @@ void BKE_groom_hair_update_guide_curves(const Depsgraph *depsgraph, Groom *groom
#endif
MEM_freeN(numverts);
- MEM_freeN(verts);
+ if (verts)
+ {
+ MEM_freeN(verts);
+ }
if (scalp)
{
More information about the Bf-blender-cvs
mailing list