Anim: Convert Grease Pencil conversion code to new Action API #128064

Merged
Sybren A. Stüvel merged 1 commits from dr.sybren/blender:anim/grease-pencil-convert-legacy into main 2024-09-24 17:28:56 +02:00

Convert the Grease Pencil legacy converter code to the new layered
Action API.

Unfortunately this cannot just work on legacy Actions (and then rely on
the versioning to layered Actions we'll land soon), as the GP conversion
runs as the final step of the versioning process. This cannot be helped,
as the usual versioning is not allowed to create new IDs and this does.

Ref: #123424


I tried testing with https://cloud.blender.org/p/gallery/5b685075bf419c4d7bd0ec36 but that doesn't seem to actually visit the animation conversion code. Not sure which file to do a proper test with.

Convert the Grease Pencil legacy converter code to the new layered Action API. Unfortunately this cannot just work on legacy Actions (and then rely on the versioning to layered Actions we'll land soon), as the GP conversion runs as the final step of the versioning process. This cannot be helped, as the usual versioning is not allowed to create new IDs and this does. Ref: #123424 -------- I tried testing with https://cloud.blender.org/p/gallery/5b685075bf419c4d7bd0ec36 but that doesn't seem to actually visit the animation conversion code. Not sure which file to do a proper test with.
Sybren A. Stüvel added the
Module
Animation & Rigging
Interest
Grease Pencil
labels 2024-09-24 11:53:31 +02:00
Sybren A. Stüvel force-pushed anim/grease-pencil-convert-legacy from 6216f848fc to 282c4ceae6 2024-09-24 12:06:01 +02:00 Compare
Sybren A. Stüvel requested review from Nathan Vegdahl 2024-09-24 12:08:33 +02:00
Sybren A. Stüvel requested review from Bastien Montagne 2024-09-24 12:08:40 +02:00
Author
Member

@blender-bot build

@blender-bot build
Sybren A. Stüvel force-pushed anim/grease-pencil-convert-legacy from 282c4ceae6 to 7ebabae070 2024-09-24 13:48:28 +02:00 Compare
Sybren A. Stüvel force-pushed anim/grease-pencil-convert-legacy from 7ebabae070 to bb865a15e9 2024-09-24 13:48:41 +02:00 Compare
Author
Member

@blender-bot build

@blender-bot build
Nathan Vegdahl approved these changes 2024-09-24 14:03:13 +02:00
Nathan Vegdahl left a comment
Member

Code looks good to me.

Code looks good to me.
Member

Double-checking: it looks like everything in this file is just a code reformat?

Edit: nevermind.

Double-checking: it looks like everything in this file is just a code reformat? Edit: nevermind.
Author
Member

It's not part of this PR, so yeah that's just a "no-op code reformat" :P

It's not part of this PR, so yeah that's just a "no-op code reformat" :P
dr.sybren marked this conversation as resolved
Bastien Montagne approved these changes 2024-09-24 14:51:35 +02:00
Bastien Montagne left a comment
Owner

Codewise change LGTM. Maybe someone from the #GreasePencil module can do some checks about actual conversion behavior?

Codewise change LGTM. Maybe someone from the #GreasePencil module can do some checks about actual conversion behavior?
@ -875,0 +880,4 @@
* Additionally, if the fcurve was the last fcurve in a channel group, that
* channel group is deleted.
*
* The F-Curve is not freed. After the call returns `true`, its ownership has

has been transferred

`has been transferred`
Author
Member

Both are correct (checked with my resident native-English speaking roommate), so I'll keep this as-is.

Both are correct (checked with my resident native-English speaking roommate), so I'll keep this as-is.
dr.sybren marked this conversation as resolved
Bastien Montagne requested review from Falk David 2024-09-24 14:51:57 +02:00
Author
Member

Maybe someone from the #GreasePencil module can do some checks about actual conversion behavior?

I did some checks after getting some pointers from @filedescriptor , and it seems that the conversion is misbehaving in main already. I filed #128078 for that. That's unrelated to this PR though.

> Maybe someone from the #GreasePencil module can do some checks about actual conversion behavior? I did some checks after getting some pointers from @filedescriptor , and it seems that the conversion is misbehaving in `main` already. I filed #128078 for that. That's unrelated to this PR though.
Sybren A. Stüvel removed review request for Falk David 2024-09-24 17:28:19 +02:00
Sybren A. Stüvel merged commit 3b87859204 into main 2024-09-24 17:28:56 +02:00
Sybren A. Stüvel deleted branch anim/grease-pencil-convert-legacy 2024-09-24 17:29:00 +02:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Code Documentation
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
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
Viewport & EEVEE
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Asset Browser Project
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
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
Module
Viewport & EEVEE
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Severity
High
Severity
Low
Severity
Normal
Severity
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#128064
No description provided.