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
path: root/source
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2007-04-11 16:44:03 +0400
committerTon Roosendaal <ton@blender.org>2007-04-11 16:44:03 +0400
commit1b789314b66658a41f910b65a5d15ba0d65c0032 (patch)
treed88cf5cae1fd41f4e65597d6eb19e6f4a9aef319 /source
parent5a3ab0e32ecff0f1ff4cfc8cedf64f63b2291a5b (diff)
Bugfix #6547
Constraint "limit location" was using type "No parent" without checking a pointer for NULL, causing crashes on append.
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenkernel/intern/constraint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/constraint.c b/source/blender/blenkernel/intern/constraint.c
index 3844cdfcbfb..54930dbea9c 100644
--- a/source/blender/blenkernel/intern/constraint.c
+++ b/source/blender/blenkernel/intern/constraint.c
@@ -2030,7 +2030,7 @@ void evaluate_constraint (bConstraint *constraint, Object *ob, short ownertype,
data = constraint->data;
/* limit location relative to origin or parent */
- if (data->flag2 & LIMIT_NOPARENT) {
+ if ((data->flag2 & LIMIT_NOPARENT) && ob->parent) {
/* limiting relative to parent */
float parmat[4][4]; /* matrix of parent */
float objLoc[3], parLoc[3]; /* location of object, and location of parent */