[Bf-blender-cvs] [00dc1c08aac] blender2.8: Fix T55223: Crash when changing lattice resolution.
Germano
noreply at git.blender.org
Tue May 29 20:39:54 CEST 2018
Commit: 00dc1c08aacf46546883a41068a9e6aad1fe3c04
Author: Germano
Date: Tue May 29 15:39:44 2018 -0300
Branches: blender2.8
https://developer.blender.org/rB00dc1c08aacf46546883a41068a9e6aad1fe3c04
Fix T55223: Crash when changing lattice resolution.
===================================================================
M source/blender/blenkernel/intern/lattice.c
===================================================================
diff --git a/source/blender/blenkernel/intern/lattice.c b/source/blender/blenkernel/intern/lattice.c
index 2a60bd94d10..0d4f0f923e4 100644
--- a/source/blender/blenkernel/intern/lattice.c
+++ b/source/blender/blenkernel/intern/lattice.c
@@ -211,8 +211,10 @@ void BKE_lattice_resize(Lattice *lt, int uNew, int vNew, int wNew, Object *ltOb)
/* works best if we force to linear type (endpoints match) */
lt->typeu = lt->typev = lt->typew = KEY_LINEAR;
- /* prevent using deformed locations */
- BKE_displist_free(<Ob->curve_cache->disp);
+ if (ltOb->curve_cache) {
+ /* prevent using deformed locations */
+ BKE_displist_free(<Ob->curve_cache->disp)
+ }
copy_m4_m4(mat, ltOb->obmat);
unit_m4(ltOb->obmat);
More information about the Bf-blender-cvs
mailing list