Bugfix [#34019] Limit Constraints still affected transforms when turned off
Limit Constraints (i.e. Limit Location/Rotation/Scale/Distance) with 'For Transform' option enabled would still be applied when transforming objects even when they were turned off using the eye icon in the constraint panel headers. The "off" flag was never added to the checks for muted or disabled constraints to be skipped here.
This commit is contained in:
@@ -2336,7 +2336,7 @@ static void constraintTransLim(TransInfo *t, TransData *td)
|
||||
ListBase targets = {NULL, NULL};
|
||||
|
||||
/* only consider constraint if enabled */
|
||||
if (con->flag & CONSTRAINT_DISABLE) continue;
|
||||
if (con->flag & (CONSTRAINT_DISABLE | CONSTRAINT_OFF)) continue;
|
||||
if (con->enforce == 0.0f) continue;
|
||||
|
||||
/* only use it if it's tagged for this purpose (and the right type) */
|
||||
@@ -2427,7 +2427,7 @@ static void constraintRotLim(TransInfo *UNUSED(t), TransData *td)
|
||||
/* Evaluate valid constraints */
|
||||
for (con = td->con; con; con = con->next) {
|
||||
/* only consider constraint if enabled */
|
||||
if (con->flag & CONSTRAINT_DISABLE) continue;
|
||||
if (con->flag & (CONSTRAINT_DISABLE | CONSTRAINT_OFF)) continue;
|
||||
if (con->enforce == 0.0f) continue;
|
||||
|
||||
/* we're only interested in Limit-Rotation constraints */
|
||||
@@ -2517,7 +2517,7 @@ static void constraintSizeLim(TransInfo *t, TransData *td)
|
||||
/* Evaluate valid constraints */
|
||||
for (con = td->con; con; con = con->next) {
|
||||
/* only consider constraint if enabled */
|
||||
if (con->flag & CONSTRAINT_DISABLE) continue;
|
||||
if (con->flag & (CONSTRAINT_DISABLE | CONSTRAINT_OFF)) continue;
|
||||
if (con->enforce == 0.0f) continue;
|
||||
|
||||
/* we're only interested in Limit-Scale constraints */
|
||||
|
||||
Reference in New Issue
Block a user