Nodes: add forward compatibility for dynamic node declarations #113497

Merged
Jacques Lucke merged 11 commits from JacquesLucke/blender:dynamic-socket-forward-compat into blender-v4.0-release 2023-10-13 14:40:00 +02:00
Member

The goal of this patch is to allow us to use dynamic node declarations for various nodes in a future version without breaking forward compatibility. The same kind of change should be added to Blender 3.6.

The code added here is not supposed to end up in main, so it has to be removed when merging the release branch.

I attached two test files that I created with #113553 and #113413.

The goal of this patch is to allow us to use dynamic node declarations for various nodes in a future version without breaking forward compatibility. The same kind of change should be added to Blender 3.6. The code added here is not supposed to end up in `main`, so it has to be removed when merging the release branch. I attached two test files that I created with #113553 and #113413.
Jacques Lucke added 8 commits 2023-10-10 15:41:28 +02:00
Jacques Lucke requested review from Iliya Katushenock 2023-10-10 15:42:24 +02:00
Jacques Lucke requested review from Hans Goudey 2023-10-10 15:42:25 +02:00
Hans Goudey approved these changes 2023-10-11 10:54:53 +02:00
Hans Goudey left a comment
Member

This seems reasonable, it's sort of ugly to have in the update function but like you said, it doesn't affect the main branch.

I'd suggest waiting to commit this until changes land in main and we have a good way to test this.

This seems reasonable, it's sort of ugly to have in the update function but like you said, it doesn't affect the main branch. I'd suggest waiting to commit this until changes land in main and we have a good way to test this.
@ -276,2 +277,4 @@
}
/**
* Not great to have this here, but this is only for forward compatibility, so this code shouldn't
Member

Extra space in front of "Not" and missing "be" after "shouldn't"

Extra space in front of "Not" and missing "be" after "shouldn't"
JacquesLucke marked this conversation as resolved
@ -278,0 +355,4 @@
}
/**
* This is used for forward compatibility. It can change identifiers of sockets created in the
Member

At the beginning of the doc string, it would be nice to just say what the function does, maybe even with an example "Attribute_001" or something. Then the other stuff fits in a separate paragraph

At the beginning of the doc string, it would be nice to just say what the function does, maybe even with an example `"Attribute_001"` or something. Then the other stuff fits in a separate paragraph
JacquesLucke marked this conversation as resolved
Jacques Lucke added 1 commit 2023-10-13 10:57:58 +02:00
Jacques Lucke added 1 commit 2023-10-13 12:08:26 +02:00
Jacques Lucke added 1 commit 2023-10-13 12:16:15 +02:00
buildbot/vexp-code-patch-coordinator Build done. Details
4cfebf5d9a
improve comment
Author
Member

@blender-bot build

@blender-bot build
Iliya Katushenock approved these changes 2023-10-13 14:08:51 +02:00
Jacques Lucke merged commit 0ea193bdb3 into blender-v4.0-release 2023-10-13 14:40:00 +02:00
Jacques Lucke deleted branch dynamic-socket-forward-compat 2023-10-13 14:40:02 +02:00
Author
Member

Hm, just after committing this I noticed that it would be useful to have the forward compatibility in main until we actually use dynamic declarations.

Hm, just after committing this I noticed that it would be useful to have the forward compatibility in `main` until we actually use dynamic declarations.
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#113497
No description provided.