diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-11-04 18:59:09 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-11-04 18:59:09 +0300 |
commit | 6753882e42282ccf9dea49bdef2fc5455d852710 (patch) | |
tree | 5cc4fea764a9eb72b05d5c233d3549c52d7c7e02 /source/blender/editors/object/object_constraint.c | |
parent | 5fafa570d06a920fcbd73b0e5b1944846cce43ed (diff) |
bugfix [#24009] Crash when switching area types and performing ops
Diffstat (limited to 'source/blender/editors/object/object_constraint.c')
-rw-r--r-- | source/blender/editors/object/object_constraint.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/editors/object/object_constraint.c b/source/blender/editors/object/object_constraint.c index d3b26100727..e222913e703 100644 --- a/source/blender/editors/object/object_constraint.c +++ b/source/blender/editors/object/object_constraint.c @@ -726,6 +726,11 @@ static int childof_clear_inverse_exec (bContext *C, wmOperator *op) bConstraint *con = edit_constraint_property_get(op, ob, CONSTRAINT_TYPE_CHILDOF); bChildOfConstraint *data= (con) ? (bChildOfConstraint *)con->data : NULL; + if(data==NULL) { + BKE_report(op->reports, RPT_ERROR, "Childof constraint not found."); + return OPERATOR_CANCELLED; + } + /* simply clear the matrix */ unit_m4(data->invmat); |