[Bf-blender-cvs] [1fa98b3] master: Fix free'd memory use removing constraint
Campbell Barton
noreply at git.blender.org
Wed Feb 18 00:45:34 CET 2015
Commit: 1fa98b374f620b3357fb26bf959c38cff9f8cc7e
Author: Campbell Barton
Date: Wed Feb 18 10:38:21 2015 +1100
Branches: master
https://developer.blender.org/rB1fa98b374f620b3357fb26bf959c38cff9f8cc7e
Fix free'd memory use removing constraint
===================================================================
M source/blender/blenkernel/intern/constraint.c
===================================================================
diff --git a/source/blender/blenkernel/intern/constraint.c b/source/blender/blenkernel/intern/constraint.c
index 71b2e7d..93f524a 100644
--- a/source/blender/blenkernel/intern/constraint.c
+++ b/source/blender/blenkernel/intern/constraint.c
@@ -4419,9 +4419,10 @@ bool BKE_constraint_remove(ListBase *list, bConstraint *con)
bool BKE_constraint_remove_ex(ListBase *list, Object *ob, bConstraint *con, bool clear_dep)
{
+ const short type = con->type;
if (BKE_constraint_remove(list, con)) {
/* ITASC needs to be rebuilt once a constraint is removed [#26920] */
- if (clear_dep && ELEM(con->type, CONSTRAINT_TYPE_KINEMATIC, CONSTRAINT_TYPE_SPLINEIK)) {
+ if (clear_dep && ELEM(type, CONSTRAINT_TYPE_KINEMATIC, CONSTRAINT_TYPE_SPLINEIK)) {
BIK_clear_data(ob->pose);
}
return true;
More information about the Bf-blender-cvs
mailing list