Animation channels do not get removed from action when according modifier/constraint is deleted #89679

Closed
opened 2021-07-06 09:43:42 +02:00 by thomas pahler · 15 comments

System Information
Operating system: Windows-10-10.0.19041-SP0 64 Bits
Graphics card: GeForce GTX 1080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 457.51

Blender Version
Broken: version: 2.93.0, branch: master, commit date: 2021-06-01 14:46, hash: 383bc8d9bc
Worked: unknown

Short description of error
When a driver is added to a modifier, it will not be removed when the modifier is deleted.

Exact steps for others to reproduce the error
open the attached blend file GPDriverBugreport.blend
run the script, this will:

  • add a build modifier to the grease pencil object
  • add a custom property on the object
  • link the modifier start to the custom property
    then, remove the modifier
    add a new build modifier
    now, the driver is still there, even though we have a new modifier?

expected behaviour:

  • the driver is deleted when the modifier is removed
  • when adding the new modifier, there is no driver on it

also, a second problem: there are some oddities happening where the build modifier will no longer reach 100%.
this happens after removing and adding back the modifier, and deleting the driver. but we have not been able to reproduce this consistently.

**System Information** Operating system: Windows-10-10.0.19041-SP0 64 Bits Graphics card: GeForce GTX 1080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 457.51 **Blender Version** Broken: version: 2.93.0, branch: master, commit date: 2021-06-01 14:46, hash: `383bc8d9bc` Worked: unknown **Short description of error** When a driver is added to a modifier, it will not be removed when the modifier is deleted. **Exact steps for others to reproduce the error** open the attached blend file [GPDriverBugreport.blend](https://archive.blender.org/developer/F10213444/GPDriverBugreport.blend) run the script, this will: - add a build modifier to the grease pencil object - add a custom property on the object - link the modifier start to the custom property then, remove the modifier add a new build modifier now, the driver is still there, even though we have a new modifier? **expected behaviour:** - the driver is deleted when the modifier is removed - when adding the new modifier, there is no driver on it ---- also, a second problem: there are some oddities happening where the build modifier will no longer reach 100%. this happens after removing and adding back the modifier, and deleting the driver. but we have not been able to reproduce this consistently.
Author

Added subscriber: @thomason1005

Added subscriber: @thomason1005

#99944 was marked as duplicate of this issue

#99944 was marked as duplicate of this issue

#64170 was marked as duplicate of this issue

#64170 was marked as duplicate of this issue

#98457 was marked as duplicate of this issue

#98457 was marked as duplicate of this issue

#89811 was marked as duplicate of this issue

#89811 was marked as duplicate of this issue
Member

Added subscribers: @dr.sybren, @lichtwerk

Added subscribers: @dr.sybren, @lichtwerk
Member

Changed status from 'Needs Triage' to: 'Needs Developer To Reproduce'

Changed status from 'Needs Triage' to: 'Needs Developer To Reproduce'
Member

Dont think this is a bug.
This is true for all animation data (FCurves as well, not just drivers) and not just modifiers, could be constraints etc.
What happens is just that the FCurves get invalid (their RNA paths dont point to something valid anymore), they also get underlined in red.

Once the RNA paths "make sense" again [modifier returns -- this could also be gone because of broken links, I think] or a new modifier with the same name comes in, these FCurves get effective again.

Like I said, dont think this is a bug, but to be 100% sure, I'll ask for confirmation from @dr.sybren: dont think we should remove paths/channels from actions if their respective modifier/constraint gets deleted? Or maybe we should?

Dont think this is a bug. This is true for all animation data (FCurves as well, not just drivers) and not just modifiers, could be constraints etc. What happens is just that the FCurves get invalid (their RNA paths dont point to something valid anymore), they also get underlined in red. Once the RNA paths "make sense" again [modifier returns -- this could also be gone because of broken links, I think] or a new modifier with the same name comes in, these FCurves get effective again. Like I said, dont think this is a bug, but to be 100% sure, I'll ask for confirmation from @dr.sybren: dont think we should remove paths/channels from actions if their respective modifier/constraint gets deleted? Or maybe we should?
Philipp Oeser changed title from driver does not get removed when modifier is deleted to Animation channels do not get removed from action when according modifier/constraint is deleted 2021-07-06 12:05:32 +02:00

Changed status from 'Needs Developer To Reproduce' to: 'Archived'

Changed status from 'Needs Developer To Reproduce' to: 'Archived'

I can confirm, the persistence of animation data is by design. Might be considered a bit of a sloppy design with some downsides (corroborated by many "invalid driver" warnings on the console whenever you open a Blender Animation Studio anim file), but it also has upsides. Not losing animation data is one, and the ability to swap out "animated things" with other "things".

also, a second problem: there are some oddities happening where the build modifier will no longer reach 100%.

Please don't describe two problems in one report. It's better to write two separate reports, and just mention in each that they might potentially be related to the other.

I can confirm, the persistence of animation data is by design. Might be considered a bit of a sloppy design with some downsides (corroborated by many "invalid driver" warnings on the console whenever you open a Blender Animation Studio anim file), but it also has upsides. Not losing animation data is one, and the ability to swap out "animated things" with other "things". > also, a second problem: there are some oddities happening where the build modifier will no longer reach 100%. Please don't describe two problems in one report. It's better to write two separate reports, and just mention in each that they might potentially be related to the other.
Author

i see.

thank you for the explanation!

i see. thank you for the explanation!
Member

Added subscriber: @marcus-13

Added subscriber: @marcus-13
Member

Added subscriber: @Vyach

Added subscriber: @Vyach
Member

Added subscribers: @Cradmon, @MACHIN3, @ZedDB, @angavrilov

Added subscribers: @Cradmon, @MACHIN3, @ZedDB, @angavrilov
Member

Added subscribers: @Raimund58, @PratikPB2123

Added subscribers: @Raimund58, @PratikPB2123
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#89679
No description provided.