Fix T37667: rotational difference driver target marked invalid even though valid.

This commit is contained in:
Brecht Van Lommel 2013-12-01 15:05:03 +01:00
parent 69e9927b6c
commit 6b54752c2e
Notes: blender-bot 2023-02-14 11:32:12 +01:00
Referenced by issue #37677, crash in sculpt mode with smooth shading
Referenced by issue #37667, Driver variable, rotational difference, red.
1 changed files with 4 additions and 0 deletions

View File

@ -1148,6 +1148,10 @@ static float dvar_eval_rotDiff(ChannelDriver *driver, DriverVar *dvar)
/* stop here... */
return 0.0f;
}
else {
dtar1->flag &= ~DTAR_FLAG_INVALID;
dtar2->flag &= ~DTAR_FLAG_INVALID;
}
/* use the final posed locations */
mat4_to_quat(q1, pchan->pose_mat);