Constraint "limit location" was using type "No parent" without checking
a pointer for NULL, causing crashes on append.
This commit is contained in:
2007-04-11 12:44:03 +00:00
parent 5a3ab0e32e
commit 1b789314b6

View File

@@ -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 */