CAD_Sketcher icon indicating copy to clipboard operation
CAD_Sketcher copied to clipboard

[BUG] Delete dimensional constraint with drivers

Open Franckapik opened this issue 2 years ago • 4 comments

Contact Details

[email protected]

Description

When we delete dimensional constraint with drivers added, the values for all the list of dimensions are modified. There is a kind of shift .

previewDrivers

Addon Version

0.20

Blender Version

3.3.1

What platform are you running on?

Linux

Franckapik avatar Jan 11 '23 07:01 Franckapik

Thanks for the report, this seems to be a bug in blender. There's now a bug report here: https://developer.blender.org/T103915

hlorus avatar Jan 16 '23 10:01 hlorus

Hi @hlorus ! Thank you for having reported this issue in the good place ! 😉 It seems that we don't have any news? Nobody is working on this at this time, isn't it!?

Franckapik avatar Mar 03 '23 08:03 Franckapik

Yeah it might take a while but i guess you can ask there about the progress...

hlorus avatar Mar 03 '23 09:03 hlorus

Just encountered this bug myself lately when working on some improvements to driver related workflows.

Because that bug has been open for a while and there's no owner, project or milestone for it I think it's unlikely the Blender team will get to this problem soon. I would suggest working around it for now by manually destroying drivers associated with constraints before deleting them, but to my surprise there doesn't appear to be a Blender API that can do this. It seems the existing driver_remove function only removes drivers that match an input name, and there is no API to remove all drivers from what I could tell (see blender source for driver_remove). There's also no way to enumerate the drivers to do get the information necessary to do individual driver_remove calls.

It might be worth submitting a patch to blender to provide a "driver_remove_all" function that would enable scripts to manually remove all drivers as part of their script's other functionality, while at the same time enabling people to work around this old problem in Blender.

ecosky avatar Jan 21 '24 14:01 ecosky