mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Fix bug #33176: Deactivating both position and rotation target from iTaSC IK-Solver crashes Blender. No constraint is created for target in that case, just needed to add a check.
This commit is contained in:
parent
bf0102ffa4
commit
d261d65bda
1 changed files with 1 additions and 1 deletions
|
|
@ -1636,7 +1636,7 @@ static void execute_scene(Scene *blscene, IK_Scene *ikscene, bItasc *ikparam, fl
|
|||
// compute constraint error
|
||||
for (i = ikscene->targets.size(); i > 0; --i) {
|
||||
IK_Target *iktarget = ikscene->targets[i - 1];
|
||||
if (!(iktarget->blenderConstraint->flag & CONSTRAINT_OFF)) {
|
||||
if (!(iktarget->blenderConstraint->flag & CONSTRAINT_OFF) && iktarget->constraint) {
|
||||
unsigned int nvalues;
|
||||
const iTaSC::ConstraintValues *values;
|
||||
values = iktarget->constraint->getControlParameters(&nvalues);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue