Drivers applied to modifier values don't get deleted when the modifier is applied or deleted #64170

Closed
opened 2019-05-05 14:20:29 +02:00 by Brendan Lourenco · 12 comments

System Information
Operating system: Mac OS

Blender Version
Broken: 2.80, 1c58604070, master, 2019-05-05

Short description of error
When using a driver to drive a modifier value, deleting the modifier or applying it doesn't delete the driver.
So issues start occurring after this when you add the same modifier to the object and it automatically has this driver.
Or you duplicate the object and the driver is also duplicated, which means adding the same modifier to the duplicate also automatically has a driver.
This also leads to an issue with appending objects to other blend files. Since, when the driver is driven by other objects, appending this object will also append the objects the driver is linked to. Causing many more objects to be appended, without any real idea of how they are linked since the modifier that connects them was deleted.

Exact steps for others to reproduce the error
ModifiersAndDriversBug.blend
Grab the empty and move it, it should drive the thickness value of the solidify modifier.
Delete the solidify modifier on the plane.
Grab the empty again and move it (the plane shouldn't change, which is expected).
Duplicate this plane.
Add a solidify modifier back to the duplicated plane (it's thickness value will automatically have a driver attached).
Grab the empty again and move it (Nothing should happen as the drivers dependencies need to be updated for it to work).
Update the driver dependencies (It should work like before).
Delete the duplicate and save the file.
Open a new blender file and append the plane object from the saved file (the empty will also be appended, as it is linked to the driver).

**System Information** Operating system: Mac OS **Blender Version** Broken: 2.80, 1c5860407068, master, 2019-05-05 **Short description of error** When using a driver to drive a modifier value, deleting the modifier or applying it doesn't delete the driver. So issues start occurring after this when you add the same modifier to the object and it automatically has this driver. Or you duplicate the object and the driver is also duplicated, which means adding the same modifier to the duplicate also automatically has a driver. This also leads to an issue with appending objects to other blend files. Since, when the driver is driven by other objects, appending this object will also append the objects the driver is linked to. Causing many more objects to be appended, without any real idea of how they are linked since the modifier that connects them was deleted. **Exact steps for others to reproduce the error** [ModifiersAndDriversBug.blend](https://archive.blender.org/developer/F7007443/ModifiersAndDriversBug.blend) Grab the empty and move it, it should drive the thickness value of the solidify modifier. Delete the solidify modifier on the plane. Grab the empty again and move it (the plane shouldn't change, which is expected). Duplicate this plane. Add a solidify modifier back to the duplicated plane (it's thickness value will automatically have a driver attached). Grab the empty again and move it (Nothing should happen as the drivers dependencies need to be updated for it to work). Update the driver dependencies (It should work like before). Delete the duplicate and save the file. Open a new blender file and append the plane object from the saved file (the empty will also be appended, as it is linked to the driver).

Added subscriber: @Cradmon

Added subscriber: @Cradmon

#64397 was marked as duplicate of this issue

#64397 was marked as duplicate of this issue

Added subscribers: @angavrilov, @ZedDB

Added subscribers: @angavrilov, @ZedDB
Alexander Gavrilov was assigned by Sebastian Parborg 2019-05-06 18:37:59 +02:00

@angavrilov feel free to reassign if this in not for you.

@angavrilov feel free to reassign if this in not for you.

Added subscriber: @MACHIN3

Added subscriber: @MACHIN3

I'm pretty sure no drivers are ever removed just because you delete something they drive - the only exception being objects themselves, because drivers are attached to objects and disappear with the owner automatically. Thus this might be entering the domain of feature requests.

I'm pretty sure no drivers are ever removed just because you delete something they drive - the only exception being objects themselves, because drivers are attached to objects and disappear with the owner automatically. Thus this might be entering the domain of feature requests.

@angavrilov I'm guessing this driver behaviour (where the driver is attached to the object) was used as drivers can't be attached to modifiers. This works as expected, until you wish to apply or delete the modifier, as the driver will remain around since it is attached to the object. Which means manually deleting drivers, or potentially getting bug like behaviour through these leftover drivers.

The most obvious way I can see of solving this (with my minimal knowledge of blenders' codebase) is to attach drivers to modifiers, but that may mean making modifiers similar to how blender uses materials/particle systems. Which would be a feature request.

@angavrilov I'm guessing this driver behaviour (where the driver is attached to the object) was used as drivers can't be attached to modifiers. This works as expected, until you wish to apply or delete the modifier, as the driver will remain around since it is attached to the object. Which means manually deleting drivers, or potentially getting bug like behaviour through these leftover drivers. The most obvious way I can see of solving this (with my minimal knowledge of blenders' codebase) is to attach drivers to modifiers, but that may mean making modifiers similar to how blender uses materials/particle systems. Which would be a feature request.

Drivers are stored in the same place as NLA tracks and other animation data. They are basically special animation curves that use custom input instead of current frame for the horizontal axis - you can even actually use that curve to tune the driver result.

Drivers are stored in the same place as NLA tracks and other animation data. They are basically special animation curves that use custom input instead of current frame for the horizontal axis - you can even actually use that curve to tune the driver result.

Having heard that drivers are similar to keyframing, I tested keyframing, and it has the same issue as drivers.

Since reviewing my issue, I'd say this is probably not a bug but more of a user experience frustration. Since you have to remember to delete drivers manually if they are attached to a modifier you wish to apply or delete. If these drivers do not get deleted, they can cause bug like behaviour (which is why I initially thought it was a bug).

Having heard that drivers are similar to keyframing, I tested keyframing, and it has the same issue as drivers. Since reviewing my issue, I'd say this is probably not a bug but more of a user experience frustration. Since you have to remember to delete drivers manually if they are attached to a modifier you wish to apply or delete. If these drivers do not get deleted, they can cause bug like behaviour (which is why I initially thought it was a bug).
Alexander Gavrilov was unassigned by Dalai Felinto 2019-12-23 16:34:32 +01:00
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

See also #89679 (Animation channels do not get removed from action when according modifier/constraint is deleted) which was not considered a bug, not even a Know Issue, will merge reports.

See also #89679 (Animation channels do not get removed from action when according modifier/constraint is deleted) which was not considered a bug, not even a Know Issue, will merge reports.
Member

Closed as duplicate of #89679

Closed as duplicate of #89679
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
5 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#64170
No description provided.