Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSybren A. Stüvel <sybren@stuvel.eu>2018-07-04 12:21:31 +0300
committerSybren A. Stüvel <sybren@stuvel.eu>2018-07-04 12:22:57 +0300
commit9e4d667c2cfd4a81f9a69628b69facd8fd4e0a01 (patch)
tree212ca3a6f0c3db50d83bd0fc799026ebcdfd582e /source/blender/blenkernel/BKE_softbody.h
parent75b5ff6698f5c1d50152cfb68530ac6a4ead999e (diff)
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).
Diffstat (limited to 'source/blender/blenkernel/BKE_softbody.h')
-rw-r--r--source/blender/blenkernel/BKE_softbody.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/BKE_softbody.h b/source/blender/blenkernel/BKE_softbody.h
index ff9d079c8e1..b173c995727 100644
--- a/source/blender/blenkernel/BKE_softbody.h
+++ b/source/blender/blenkernel/BKE_softbody.h
@@ -54,7 +54,7 @@ typedef struct BodyPoint {
extern struct SoftBody *sbNew(struct Scene *scene);
/* frees internal data and softbody itself */
-extern void sbFree(struct SoftBody *sb);
+extern void sbFree(struct Object *ob);
/* frees simulation data to reset simulation */
extern void sbFreeSimulation(struct SoftBody *sb);