Page MenuHome

Limit distance constraint: reset distance does not work
Closed, ResolvedPublic

Description

System Information
Operating system: Linux
Graphics card: GTX 1060

Blender Version
Broken: 2.80, 2018-11-30

Short description of error
When you add a limit distance constraint to one bone and you select a bone as the target, the distance is not updated (still 0m). When you click on the button "Reset Distance", nothing happens. Distance is still 0m. You have to manually set the distance for this constraint.

Same issue for the limit distance constraint on an object.

Exact steps for others to reproduce the error

In the file, I have added a limit distance on bone.001 and selected bone as the target and the distance is still 0m. When I click on "Reset Distance", nothing happens.

Event Timeline

Alexander Gavrilov (angavrilov) lowered the priority of this task from 90 to 50.

Problem is, this constraint (and probably others, like stretch to) reset that value to current distance to target inside of their evaluation code, which only has access to temp CoW data now, not orig constraint data anymore. @Sergey Sharybin (sergey) not sure how to fix, probably best way would be to move that to actual operator (and add callback to RNA too, to do initial setting when target are defined) ? :/

@Alexander Gavrilov (angavrilov) ah you are quick! :)
But please do the same (at least for the strecth to, maybe others…).