Fixed the fix for constraint loop :P

Everything works properly now
This commit is contained in:
2003-11-17 02:25:33 +00:00
parent 12a5ea3e67
commit b43e74a1db

View File

@@ -501,9 +501,10 @@ static short detect_constraint_loop (Object *owner, const char* substring, int d
// return 1; // return 1;
} }
} }
if (typefrom == CONSTRAINT_TYPE_TRACKTO && typefrom == CONSTRAINT_TYPE_LOCKTRACK){ else {
curcon->flag |= CONSTRAINT_NOREFRESH; curcon->flag |= CONSTRAINT_NOREFRESH;
} }
if (detect_constraint_loop (data->tar, data->subtarget, disable, CONSTRAINT_TYPE_TRACKTO)){ if (detect_constraint_loop (data->tar, data->subtarget, disable, CONSTRAINT_TYPE_TRACKTO)){
curcon->flag |= CONSTRAINT_DISABLE; curcon->flag |= CONSTRAINT_DISABLE;
result = 1; result = 1;
@@ -541,9 +542,10 @@ static short detect_constraint_loop (Object *owner, const char* substring, int d
// return 1; // return 1;
} }
} }
if (typefrom == CONSTRAINT_TYPE_TRACKTO && typefrom == CONSTRAINT_TYPE_LOCKTRACK){ else {
curcon->flag |= CONSTRAINT_NOREFRESH; curcon->flag |= CONSTRAINT_NOREFRESH;
} }
if (detect_constraint_loop (data->tar, data->subtarget, disable, CONSTRAINT_TYPE_LOCKTRACK)){ if (detect_constraint_loop (data->tar, data->subtarget, disable, CONSTRAINT_TYPE_LOCKTRACK)){
curcon->flag |= CONSTRAINT_DISABLE; curcon->flag |= CONSTRAINT_DISABLE;
result = 1; result = 1;