Blender Git Loki

Git Commits -> Revision 9e4d667

Revision 9e4d667 by Sybren A. Stüvel (master)
July 4, 2018, 09:22 (GMT)
SoftBody: refactored sbFree()

This prevents having to wrap each call to sbFree() in an if(ob->soft)
condition and assign ob->soft = NULL after calling.

Furthermore, passing `Object *` allows us to change freeing behaviour
depending on whether the object is an evaluated copy or an original (not
done in this commit yet).

Commit Details:

Full Hash: 9e4d667c2cfd4a81f9a69628b69facd8fd4e0a01
Parent Commit: 75b5ff6
Lines Changed: +14, -14

5 Modified Paths:

/source/blender/blenkernel/BKE_softbody.h (+1, -1) (Diff)
/source/blender/blenkernel/intern/object.c (+2, -8) (Diff)
/source/blender/blenkernel/intern/softbody.c (+8, -1) (Diff)
/source/blender/editors/object/object_edit.c (+1, -1) (Diff)
/source/blender/editors/object/object_modifier.c (+2, -3) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021