Regression: New Principled BSDF does not load keyframes or drivers correctly from prior versions #113898
Labels
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
7 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#113898
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: Windows
Graphics card: RTX 4060Ti
Blender Version
Broken: 4.0
Worked: 3.6
4.0 does not load keyframes for "Alpha" slider in the Principled BSDF from 3.6.
Exact steps for others to reproduce the error
Add keyframes for Alpha such as 1 to 0 in Blender 3.6. Load project in 4.0. Keyframes for Alpha are there but do not contain the information. For example, it will stay at 1 and not go to zero as it should.
Hi, thanks for the report. I can confirm. Could it be due to new panel interface? or some api/versioning code changes? I'll bisect.
Broke between
fca8df9415b1 - 264c3e7bd7a6
Attaching a file to test both Keyframes and Drivers from 3.6 to 4.0. These are different f-curves that both need to be handled.
The original file from 3.6 starts with a Driver in Metallic (.input[6]) and Keyframes on Specular Tint (.inputs[8]) and Alpha (.inputs[21]).
When loading into 4.0 here's what happens:
New Principled BSDF does not load keyframes for Alpha from projects from 3.6.to New Principled BSDF does not load keyframes or drivers correctly from prior versionsGit bisect points to
88ad79c2d1
@Alaska ^
New Principled BSDF does not load keyframes or drivers correctly from prior versionsto Regression: New Principled BSDF does not load keyframes or drivers correctly from prior versionsI'm sorry, I don't know how to fix this issue. My knowledge of this area of Blenders code is limited.
I'm trying to figure out how to create a fix, but I haven't found anything useful yet. If someone would like to provide guidance or fix this issue, then feel free to do so.
if you know how the socket names (before and after), you could probably use something like
BKE_animdata_fix_paths_rename_all
/BKE_action_fix_paths_rename
?It should be fixed using
version_node_socket_index_animdata
, search the code for an example where this was used for the Principled BSDF. It's pretty bad that the RNA path uses the index instead of the socket name, but not going to change for 4.0.@LukasStockner can you take care of this? Unless @Alaska fixes it first :)
I've tried some experiments, and thanks to Jesse Yurkovich for providing some guidance on blender chat, but I haven't had much luck getting a fix working. I'll keep experimenting, it's a good learning experience, but it's probably best that this gets fixed by someone more knowledgeable, especially if I'm having trouble getting some basic stuff working.
I just wanted to add a note that might help anyone that works on this.
Not only do we have to copy animation data and drivers between re-ordered sockets, we also need to copy this data between nodes and new data types. Examples:
factor
is the old specular tint and the output is connected to specular tint. We need to copy the animation data and drivers to the factor in the mix node.While ideally we would support copying animation data to other nodes, we can accept some imperfect compatibility. I think the main thing is to update the animation data on the Principled BSDF node itself.
Fixed with #114300 /
0b81a163e2
.Not updating automatically generated conversion setups is accepted as a known limitation for now.