Anim: Baklava, add Animation data-block to anim filtering code #120654

Merged
Sybren A. Stüvel merged 7 commits from dr.sybren/blender:pr/baklava-animation-filtering into main 2024-04-20 12:19:25 +02:00

Add minimal support for the Animation data-block to the anim filtering code. This means:

  • F-Curves in the Animation data-block are shown in the Dope Sheet and Graph Editor.
  • The Animation is shown underneath each animated data-block, just like an Action would be.
  • Contrary to Actions, the expanded/collapsed state is stored on id->adt and not on Animation. Because an Animation is intended to be used by multiple data-blocks, they each should have their own flag for this.
  • In the filtering code, this PR adds the 'fillanim' channel type. This is simply mimicking the name from the Action's 'fillact' type.

Limitations:

  • Deleting of F-Curves is explicitly blocked, as that'll be introduced in a later PR. The block prevents Blender from crashing.
  • The Dope Sheet doesn't have an Animation mode yet, that'll be for a later PR too.
Add minimal support for the `Animation` data-block to the anim filtering code. This means: - F-Curves in the `Animation` data-block are shown in the Dope Sheet and Graph Editor. - The `Animation` is shown underneath each animated data-block, just like an `Action` would be. - Contrary to Actions, the expanded/collapsed state is stored on `id->adt` and not on `Animation`. Because an `Animation` is intended to be used by multiple data-blocks, they each should have their own flag for this. - In the filtering code, this PR adds the 'fillanim' channel type. This is simply mimicking the name from the Action's 'fillact' type. Limitations: - Deleting of F-Curves is explicitly blocked, as that'll be introduced in a later PR. The block prevents Blender from crashing. - The Dope Sheet doesn't have an Animation mode yet, that'll be for a later PR too.
Sybren A. Stüvel added 4 commits 2024-04-15 11:48:30 +02:00
Sybren A. Stüvel added the
Module
Animation & Rigging
label 2024-04-15 11:48:44 +02:00
Sybren A. Stüvel requested review from Nathan Vegdahl 2024-04-18 11:46:27 +02:00
Sybren A. Stüvel requested review from Christoph Lendenfeld 2024-04-18 11:46:27 +02:00
Christoph Lendenfeld approved these changes 2024-04-18 12:24:52 +02:00
Christoph Lendenfeld left a comment
Member

some of the changes have already landed in the refactor PR, right?

other than that, lgtm

some of the changes have already landed in the refactor PR, right? other than that, lgtm
Sybren A. Stüvel added 1 commit 2024-04-18 12:30:48 +02:00
8c2afe0b74 Merge remote-tracking branch 'origin/main' into pr/baklava-animation-filtering
# Conflicts:
#	source/blender/editors/animation/anim_filter.cc
#	source/blender/editors/include/ED_keyframes_draw.hh
Sybren A. Stüvel added 1 commit 2024-04-18 12:33:25 +02:00
44fb691747 Change macro `ANIMDATA_HAS_KEYS(id)` to `ANIMDATA_HAS_ACTION(id)`
The new name matches what it already was checking for.
Author
Member

Thanks for the review. I just merged with origin/main, so if there were any overlaps, they should be gone now.

Thanks for the review. I just merged with `origin/main`, so if there were any overlaps, they should be gone now.
Nathan Vegdahl approved these changes 2024-04-18 14:50:00 +02:00
Nathan Vegdahl left a comment
Member

Since I looked at this already when it was WIP, I did a more cursory review this time, trying to focus on any changes. Looks good to me. I appreciate the shift to storing the expanded flag in the animdata.

Since I looked at this already when it was WIP, I did a more cursory review this time, trying to focus on any changes. Looks good to me. I appreciate the shift to storing the expanded flag in the animdata.
Sybren A. Stüvel added 1 commit 2024-04-19 17:22:17 +02:00
buildbot/vexp-code-patch-linux-x86_64 Build done. Details
buildbot/vexp-code-patch-lint Build done. Details
buildbot/vexp-code-patch-windows-amd64 Build done. Details
buildbot/vexp-code-patch-darwin-x86_64 Build done. Details
buildbot/vexp-code-patch-coordinator Build done. Details
buildbot/vexp-code-patch-darwin-arm64 Build done. Details
21e2b0984b
Merge branch 'main' into pr/baklava-animation-filtering
Author
Member

@blender-bot build

@blender-bot build
Author
Member

For the record, the darwin-arm64 build failure had nothing to do with this PR, and after re-triggering the build it succeeded.

For the record, the `darwin-arm64` build failure had nothing to do with this PR, and after re-triggering the build it succeeded.
Sybren A. Stüvel merged commit 933f74ca02 into main 2024-04-20 12:19:25 +02:00
Sybren A. Stüvel deleted branch pr/baklava-animation-filtering 2024-04-20 12:19:28 +02:00
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
3 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#120654
No description provided.