Change of params of anim_utils.bake_action to datacass introduced in 4.1 isn't documented as breaking change #121036

Closed
opened 2024-04-24 17:10:08 +02:00 by Zdenek Dolezal · 3 comments

There was a refactor in #112865

That changed the keyword arguments passed to anim_utils.bake_action to a dataclass. This is a API breaking change and it isn't documented in the release log of 4.1 Python API. One has to construct the BakeOptions from 4.1 and the old method doesn't work. This is definitely a good change, but it should be documented.

There was a refactor in https://projects.blender.org/blender/blender/pulls/112865 That changed the keyword arguments passed to [anim_utils.bake_action](https://docs.blender.org/api/current/bpy_extras.anim_utils.html#bpy_extras.anim_utils.bake_action) to a `dataclass`. This is a API breaking change and it isn't documented in the release log of [4.1 Python API](https://developer.blender.org/docs/release_notes/4.1/python_api/). One has to construct the `BakeOptions` from 4.1 and the old method doesn't work. This is definitely a good change, but it should be **documented**.
Zdenek Dolezal added the
Priority
Normal
Status
Needs Triage
Type
Report
labels 2024-04-24 17:10:09 +02:00
Zdenek Dolezal changed title from Change of params of `anim_utils.bake_action` from 4.0 to 4.1 to datacass isn't documented as breaking change to Change of params of `anim_utils.bake_action` introduced in 4.1 to datacass isn't documented as breaking change 2024-04-24 17:10:31 +02:00
Zdenek Dolezal changed title from Change of params of `anim_utils.bake_action` introduced in 4.1 to datacass isn't documented as breaking change to Change of params of `anim_utils.bake_action` to datacass introduced in 4.1 isn't documented as breaking change 2024-04-24 17:10:45 +02:00
Iliya Katushenock added the
Interest
Animation & Rigging
label 2024-04-24 17:16:32 +02:00
Member

@dr.sybren @nrupsis Any idea guys?

@dr.sybren @nrupsis Any idea guys?
YimingWu added
Module
Animation & Rigging
Status
Needs Info from Developers
and removed
Status
Needs Triage
labels 2024-04-25 04:21:40 +02:00

I didn't expect people using this function directly. As I see it, just because it's callable Python code doesn't mean it's "an API". But then again, there is no clear distinction in Blender's Python code about this, so my opinion doesn't mean much here ;-)

I definitely don't see an issue adding this to the documentation, as it is indeed a change that people calling this code need to be aware of.

I didn't expect people using this function directly. As I see it, just because it's callable Python code doesn't mean it's "an API". But then again, there is no clear distinction in Blender's Python code about this, so my opinion doesn't mean much here ;-) I definitely don't see an issue adding this to the documentation, as it is indeed a change that people calling this code need to be aware of.

It was actually introduced in 4.0 already, but there also undocumented. I've added the documentation in cc7cf4296d49.

Thanks for the report!

It was actually introduced in 4.0 already, but there also undocumented. I've added the documentation in [cc7cf4296d49](https://projects.blender.org/blender/blender-developer-docs/commit/cc7cf4296d490535d36f163bf051ebb657ea0f8f). Thanks for the report!
Blender Bot added
Status
Archived
and removed
Status
Needs Info from Developers
labels 2024-04-25 10:55:59 +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#121036
No description provided.