Anim: Multi Editing for FCurve modifiers #112419

Merged
Christoph Lendenfeld merged 2 commits from ChrisLend/blender:fcu_mod_multi_edit into main 2023-09-21 09:57:25 +02:00

This patch adds multi editing support to FCurve modifiers using the ALT key like in the rest of Blender.
Just like object modifiers they need to be named exactly the same and be of the same type in order for the multi editing to work.

This patch adds multi editing support to FCurve modifiers using the ALT key like in the rest of Blender. Just like object modifiers they need to be named exactly the same and be of the same type in order for the multi editing to work. <video src="/attachments/023beda4-a5e1-4838-a109-8b688ad4302e" title="FCurve Mod multi edit" controls></video>
Christoph Lendenfeld added the
Module
Animation & Rigging
label 2023-09-15 16:36:50 +02:00
Christoph Lendenfeld added 1 commit 2023-09-15 16:37:04 +02:00
Christoph Lendenfeld added this to the Animation & Rigging project 2023-09-15 16:40:35 +02:00
Sybren A. Stüvel added this to the 4.0 milestone 2023-09-15 16:45:03 +02:00
Sybren A. Stüvel approved these changes 2023-09-15 16:54:46 +02:00
Sybren A. Stüvel left a comment
Member

Awesome work!
Just some tiny remarks that can be handled when landing.

Awesome work! Just some tiny remarks that can be handled when landing.
@ -1057,1 +1057,4 @@
static void ui_context_fcurve_modifiers_via_fcurve(bContext *C, ListBase *r_lb, FModifier *source)
{
ListBase lb;

As a rule of thumb, I always recommend documenting what's in the listbase, so ListBase /*CollectionPointerLink*/ lb.

And probably a better name than lb is also more 'modern', so something like ListBase /*CollectionPointerLink*/ fcurve_links?

As a rule of thumb, I always recommend documenting what's in the listbase, so `ListBase /*CollectionPointerLink*/ lb`. And probably a better name than `lb` is also more 'modern', so something like `ListBase /*CollectionPointerLink*/ fcurve_links`?
@ -1058,0 +1063,4 @@
return;
}
blender::Vector<CollectionPointerLink *> pointers_to_free;
LISTBASE_FOREACH (CollectionPointerLink *, link, &lb) {

Use LISTBASE_FOREACH_MUTABLE here, as you're modifying lb while iterating.

Use `LISTBASE_FOREACH_MUTABLE` here, as you're modifying `lb` while iterating.
Christoph Lendenfeld added 1 commit 2023-09-15 17:04:13 +02:00
Christoph Lendenfeld requested review from Sybren A. Stüvel 2023-09-15 17:04:48 +02:00
Sybren A. Stüvel approved these changes 2023-09-19 11:12:44 +02:00
Sybren A. Stüvel left a comment
Member

Just some tiny remarks that can be handled when landing.

Helps if I click the right button.

> Just some tiny remarks that can be handled when landing. Helps if I click the right button.
Christoph Lendenfeld merged commit faf8d9d8ba into main 2023-09-21 09:57:25 +02:00
Christoph Lendenfeld deleted branch fcu_mod_multi_edit 2023-09-21 09:57:27 +02:00
Sign in to join this conversation.
No reviewers
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 Assignees
2 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#112419
No description provided.